diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-04-23 02:01:31 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-04-23 02:01:31 +0200 |
commit | 2c01ae87b090bed0e655ed8e36d41405b28079d1 (patch) | |
tree | 60b068761f40f6fa47f50a750dda1aeb5ce8bdb9 /Bugzilla | |
parent | 973bdab86324344514cddc3f4d845da05697eb49 (diff) | |
download | bugzilla-2c01ae87b090bed0e655ed8e36d41405b28079d1.tar.gz bugzilla-2c01ae87b090bed0e655ed8e36d41405b28079d1.tar.xz |
Bug 650624: Changing the requestee of a flag should not change the requester
a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Flag.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index c4bd6fef6..8457a559c 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -602,8 +602,6 @@ sub force_retarget { sub _set_requestee { my ($self, $requestee, $attachment, $skip_requestee_on_error) = @_; - # Used internally to check if the requestee is retargetting the request. - $self->{_old_requestee_id} = $self->requestee ? $self->requestee->id : 0; $self->{requestee} = $self->_check_requestee($requestee, $attachment, $skip_requestee_on_error); @@ -725,9 +723,9 @@ sub _check_setter { old_status => $self->{_old_status} }); } - # If the requester is retargetting the request, we don't - # update the setter, so that the setter gets the notification. - if ($status eq '?' && $self->{_old_requestee_id} == $setter->id) { + # If the request is being retargetted, we don't update + # the setter, so that the setter gets the notification. + if ($status eq '?' && $self->{_old_status} eq '?') { return $self->setter; } return $setter; |