From 38e12dd8a2c0b35391f20b60e9e3e8643c08f404 Mon Sep 17 00:00:00 2001 From: Matt Tyson Date: Fri, 15 Jan 2016 14:44:09 +0000 Subject: 'Bug 1159057: change to create flags as part of bug creation process. r=gerv --- attachment.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'attachment.cgi') 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); -- cgit v1.2.3-24-g4f1b