summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-31 10:37:19 +0200
committerByron Jones <glob@mozilla.com>2015-03-31 10:37:19 +0200
commit7af541bfbdf514d788b35e8d010bc5437f2bea32 (patch)
tree79c7f044e74a9fc28a722a544581b4ae15bfea77 /post_bug.cgi
parent05a3191e114c87bf4198558895e934dab4caf92c (diff)
downloadbugzilla-7af541bfbdf514d788b35e8d010bc5437f2bea32.tar.gz
bugzilla-7af541bfbdf514d788b35e8d010bc5437f2bea32.tar.xz
Bug 1149425: Can't call method "id" on an undefined value (extensions/Review/Extension.pm:564) when creating a bug with an attachment
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 006fd40ee..ecfb5fdaf 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -217,7 +217,7 @@ if ($data_fh || $attach_text) {
if ($attachment) {
# Set attachment flags.
- Bugzilla::Hook::process('post_bug_attachment_flags', { bug => $bug });
+ Bugzilla::Hook::process('post_bug_attachment_flags', { bug => $bug, attachment => $attachment });
my ($flags, $new_flags) = Bugzilla::Flag->extract_flags_from_cgi(
$bug, $attachment, $vars, SKIP_REQUESTEE_ON_ERROR);
$attachment->set_flags($flags, $new_flags);