diff options
author | Tom Stejskal <tom.stejskal@gmail.com> | 2015-06-10 16:57:38 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-06-10 16:57:38 +0200 |
commit | a75ccc2537398e6c584e159d3a08faedc91ffcc0 (patch) | |
tree | e371946b5352257845eeb0d7151990108160f9f8 /Bugzilla | |
parent | f4c8d62859f29338803ce5321029e330f8b28031 (diff) | |
download | bugzilla-a75ccc2537398e6c584e159d3a08faedc91ffcc0.tar.gz bugzilla-a75ccc2537398e6c584e159d3a08faedc91ffcc0.tar.xz |
Bug 1171924: REST API method to update a bug incorrectly removes aliases
r=dkl,a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index f24f7a4d2..ff8f651e4 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2480,9 +2480,11 @@ sub set_all { } if (exists $params->{alias} && $params->{alias}{set}) { + my ($removed_aliases, $added_aliases) = diff_arrays( + $self->alias, $params->{alias}{set}); $params->{alias} = { - add => $params->{alias}{set}, - remove => $self->alias, + add => $added_aliases, + remove => $removed_aliases, }; } |