summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorTom Stejskal <tom.stejskal@gmail.com>2015-06-10 16:57:38 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-06-10 16:57:38 +0200
commita75ccc2537398e6c584e159d3a08faedc91ffcc0 (patch)
treee371946b5352257845eeb0d7151990108160f9f8 /Bugzilla/Bug.pm
parentf4c8d62859f29338803ce5321029e330f8b28031 (diff)
downloadbugzilla-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/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm6
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,
};
}