Bug 308581: Excluding yourself from a restricted bug generates an error if the user pref is set to "show the updated bug" - Patch by byron jones (glob) <bugzilla@glob.com.au> r=LpSolit a=justdave
git-svn-id: svn://10.0.0.236/trunk@180275 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4c04ae281e
commit
78376c88cb
@ -1959,15 +1959,17 @@ if ($action eq 'next_bug') {
|
||||
}
|
||||
}
|
||||
} elsif ($action eq 'same_bug') {
|
||||
my $bug = new Bugzilla::Bug($cgi->param('id'), $whoid);
|
||||
ThrowCodeError("bug_error", { bug => $bug }) if $bug->error;
|
||||
if (Bugzilla->user->can_see_bug($cgi->param('id'))) {
|
||||
my $bug = new Bugzilla::Bug($cgi->param('id'), $whoid);
|
||||
ThrowCodeError("bug_error", { bug => $bug }) if $bug->error;
|
||||
|
||||
$vars->{'bugs'} = [$bug];
|
||||
$vars->{'bugs'} = [$bug];
|
||||
|
||||
$template->process("bug/show.html.tmpl", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
$template->process("bug/show.html.tmpl", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
} elsif ($action ne 'nothing') {
|
||||
ThrowCodeError("invalid_post_bug_submit_action");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user