diff options
author | Sean McGivern <sean@gitlab.com> | 2016-05-31 11:14:15 +0100 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-03 17:14:23 -0500 |
commit | 165d799fb3ca36768497d964619ceeacf2deeae3 (patch) | |
tree | 1c83422f67507ca7bbaca4b3617f3fdabe3de746 /app | |
parent | d78fd6df0c21f56887d1ca76cb5a40c16d3552b0 (diff) | |
download | gitlab-ce-165d799fb3ca36768497d964619ceeacf2deeae3.tar.gz |
Allow bulk-updating to remove all labels
Instead of passing `remove_label_ids`, just pass an empty array for
`label_ids` (and don't pass `add_label_ids` or `remove_label_ids`).
Diffstat (limited to 'app')
-rw-r--r-- | app/services/issues/bulk_update_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/issues/bulk_update_service.rb b/app/services/issues/bulk_update_service.rb index 2772add1d02..15825b81685 100644 --- a/app/services/issues/bulk_update_service.rb +++ b/app/services/issues/bulk_update_service.rb @@ -4,7 +4,7 @@ module Issues issues_ids = params.delete(:issues_ids).split(",") issue_params = params - [:state_event, :milestone_id, :assignee_id, :label_ids, :add_label_ids, :remove_label_ids].each do |key| + %i(state_event milestone_id assignee_id add_label_ids remove_label_ids).each do |key| issue_params.delete(key) unless issue_params[key].present? end |