Skip to content

Commit

Permalink
Bug 1159166: When I ask for review from someone who is not accepting …
Browse files Browse the repository at this point in the history
…reviews, my red request count in the top left becomes their request count
  • Loading branch information
globau committed Apr 28, 2015
1 parent 2d50ce5 commit 7bb7340
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/Needinfo/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ sub _check_requestee {
? $requestee
: Bugzilla::User->new({ name => $requestee, cache => 1 });
if ($user->needinfo_blocked) {
ThrowUserError('needinfo_blocked', { user => $user });
ThrowUserError('needinfo_blocked', { requestee => $user });
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
needinfo flag.
[% ELSIF error == "needinfo_blocked" %]
[% title = "Needinfo Request Blocked" %]
[% user.identity FILTER html %] is not currently accepting "needinfo"
[% requestee.identity FILTER html %] is not currently accepting "needinfo"
requests.
[% END %]
2 changes: 1 addition & 1 deletion extensions/Review/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ sub _check_requestee {
return unless $flag->type->name eq 'review' || $flag->type->name eq 'feedback';
if ($flag->requestee->reviews_blocked) {
ThrowUserError('reviews_blocked',
{ user => $flag->requestee, flagtype => $flag->type->name });
{ requestee => $flag->requestee, flagtype => $flag->type->name });
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

[% ELSIF error == "reviews_blocked" %]
[% title = "Request Blocked" %]
[% user.identity FILTER html %] is not currently accepting
[% requestee.identity FILTER html %] is not currently accepting
'[% flagtype FILTER html %]' requests.

[% END %]

0 comments on commit 7bb7340

Please sign in to comment.