From 7af541bfbdf514d788b35e8d010bc5437f2bea32 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 31 Mar 2015 16:37:19 +0800 Subject: Bug 1149425: Can't call method "id" on an undefined value (extensions/Review/Extension.pm:564) when creating a bug with an attachment --- post_bug.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post_bug.cgi') 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); -- cgit v1.2.3-24-g4f1b