summaryrefslogtreecommitdiffstats
path: root/extensions/Review
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-08-19 15:42:55 +0200
committerByron Jones <bjones@mozilla.com>2013-08-19 15:42:55 +0200
commit3013c645945a72ebe3c2be15ebfbf47a8931e15c (patch)
treed315be01ccd7269fb11511ec73e80e5841941e9a /extensions/Review
parent6438739f319324e8c3bd752837716ffaef9dda82 (diff)
downloadbugzilla-3013c645945a72ebe3c2be15ebfbf47a8931e15c.tar.gz
bugzilla-3013c645945a72ebe3c2be15ebfbf47a8931e15c.tar.xz
Bug 906657: updating a component throws 'Duplicate entry for key component_reviewers_idx' error when one of the reviewers is 'away'
Diffstat (limited to 'extensions/Review')
-rw-r--r--extensions/Review/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm
index 568a16a30..842160df1 100644
--- a/extensions/Review/Extension.pm
+++ b/extensions/Review/Extension.pm
@@ -168,7 +168,7 @@ sub object_end_of_update {
return unless $object->isa('Bugzilla::Product') || $object->isa('Bugzilla::Component');;
my ($new, $new_users) = _new_reviewers_from_input();
- my $old = $old_object->reviewers;
+ my $old = $old_object->reviewers(1);
if ($old ne $new) {
_update_reviewers($object, $old_object->reviewers_objs(1), $new_users);
$changes->{reviewers} = [ $old ? $old : undef, $new ? $new : undef ];