summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-03-16 07:08:12 +0100
committertravis%sedsystems.ca <>2005-03-16 07:08:12 +0100
commit235eaf8436a7cb2f693c3fb8bc5d042c652c1c5f (patch)
tree357e8cee9c59c0afe004d3e8934a257c22fd5305 /attachment.cgi
parent66172e4cc43bafb5a89f855260b2053e63af4463 (diff)
downloadbugzilla-235eaf8436a7cb2f693c3fb8bc5d042c652c1c5f.tar.gz
bugzilla-235eaf8436a7cb2f693c3fb8bc5d042c652c1c5f.tar.xz
Fix nits on bug 180652 - Frederic Buclin
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 5f50efb03..bffba5bc4 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -1152,9 +1152,10 @@ sub update
SendSQL("SELECT NOW()");
my $timestamp = FetchOneColumn();
- # Update flags. These calls must be done before updating the
- # 'attachments' table due to the deletion of request flags
- # on attachments being obsoleted.
+ # Update flags. We have to do this before committing changes
+ # to attachments so that we can delete pending requests if the user
+ # is obsoleting this attachment without deleting any requests
+ # the user submits at the same time.
my $target = Bugzilla::Flag::GetTarget(undef, $::FORM{'id'});
Bugzilla::Flag::process($target, $timestamp, \%::FORM);