diff options
author | Matt Tyson <mtyson@redhat.com> | 2016-01-15 15:44:09 +0100 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2016-01-15 15:44:09 +0100 |
commit | 38e12dd8a2c0b35391f20b60e9e3e8643c08f404 (patch) | |
tree | 17bc36ed5ff0a19741fc88378fbddc2578936b2b /attachment.cgi | |
parent | 513b4458b42e7f20ee0e57995c339c2dd6c495e7 (diff) | |
download | bugzilla-38e12dd8a2c0b35391f20b60e9e3e8643c08f404.tar.gz bugzilla-38e12dd8a2c0b35391f20b60e9e3e8643c08f404.tar.xz |
'Bug 1159057: change to create flags as part of bug creation process. r=gerv
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/attachment.cgi b/attachment.cgi index ae9efef6a..8a6672ae4 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -542,7 +542,8 @@ sub insert { } my ($flags, $new_flags) = Bugzilla::Flag->extract_flags_from_cgi( - $bug, $attachment, $vars, SKIP_REQUESTEE_ON_ERROR); + $vars, SKIP_REQUESTEE_ON_ERROR, + { bug => $bug, attachment => $attachment }); $attachment->set_flags($flags, $new_flags); # Insert a comment about the new attachment into the database. @@ -700,7 +701,7 @@ sub update { $bug->add_cc($user) if $cgi->param('addselfcc'); my ($flags, $new_flags) = - Bugzilla::Flag->extract_flags_from_cgi($bug, $attachment, $vars); + Bugzilla::Flag->extract_flags_from_cgi($vars, undef, { bug => $bug, attachment => $attachment }); if ($can_edit) { $attachment->set_flags($flags, $new_flags); |