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

This commit is contained in:
lpsolit%gmail.com 2005-09-15 10:50:04 +00:00
Родитель c4a96fb135
Коммит 7c5c4bbed5
1 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -1959,6 +1959,7 @@ if ($action eq 'next_bug') {
}
}
} elsif ($action eq 'same_bug') {
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;
@ -1968,6 +1969,7 @@ if ($action eq 'next_bug') {
|| ThrowTemplateError($template->error());
exit;
}
} elsif ($action ne 'nothing') {
ThrowCodeError("invalid_post_bug_submit_action");
}