Completed
#0126 Draft cleanup after issue submission
When you submit an issue without "Preview first" or "Save draft" there might already be a draft saved that is not indicated with draft_issues_id variable. If that is the case a quick cleanup should take place inside the SubmitIssue() code that checks for identical drafts matching the exact subject and description. Perhaps we should even have a .startswith() test since the submitted issue is likely to just be more complete.
Submitted by:
<Peter Bengtsson>
21-Jun 2005
4 years and 8 months and 3 weeks old
4 years and 8 months and 3 weeks old
The logic is this: If...:
- the title and description of submitted issue matches exactly
- the title matches exactly and the description starts by the description of the draft
- the description matches exactly and the title starts by the title of the draft
...then we can delete that draft.
21-Jun 2005