Commit af6526cd authored by Tom Stejskal's avatar Tom Stejskal Committed by David Lawrence

Bug 1171924: REST API method to update a bug incorrectly removes aliases

r=dkl,a=glob
parent ca21e3a6
...@@ -2439,9 +2439,11 @@ sub set_all { ...@@ -2439,9 +2439,11 @@ sub set_all {
} }
if (exists $params->{alias} && $params->{alias}{set}) { if (exists $params->{alias} && $params->{alias}{set}) {
my ($removed_aliases, $added_aliases) = diff_arrays(
$self->alias, $params->{alias}{set});
$params->{alias} = { $params->{alias} = {
add => $params->{alias}{set}, add => $added_aliases,
remove => $self->alias, remove => $removed_aliases,
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment