From 9a07ea292800bf33eb660f893de8a2d89569541d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 30 Mar 2015 12:43:40 +0800 Subject: Bug 1125987: asking for review in a restricted bug doesn't work as expected ("You must provide a reviewer for review requests" instead of "That user cannot access that bug" error) --- attachment.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index 94d43462d..cb0d581b3 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -578,7 +578,7 @@ sub insert { } # BMO - allow pre-processing of attachment flags - Bugzilla::Hook::process('create_attachment_flags', { bug => $bug }); + Bugzilla::Hook::process('create_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