diff options
author | Sean McGivern <sean@gitlab.com> | 2016-04-29 19:38:07 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-04 01:11:41 +0300 |
commit | 81a21c945eb8a6c2f0af7bb074a1aec389fe9394 (patch) | |
tree | 0f3a77d0f3f8211c152aabd8187976134d42777f /app/services/issues | |
parent | e42f88ca3783cc848137a04ed0c21f9cb3c0b7a7 (diff) |
WIP: allow adding and removing labels in bulk
Diffstat (limited to 'app/services/issues')
-rw-r--r-- | app/services/issues/bulk_update_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/issues/bulk_update_service.rb b/app/services/issues/bulk_update_service.rb index de8387c4900..2772add1d02 100644 --- a/app/services/issues/bulk_update_service.rb +++ b/app/services/issues/bulk_update_service.rb @@ -4,9 +4,9 @@ module Issues issues_ids = params.delete(:issues_ids).split(",") issue_params = params - issue_params.delete(:state_event) unless issue_params[:state_event].present? - issue_params.delete(:milestone_id) unless issue_params[:milestone_id].present? - issue_params.delete(:assignee_id) unless issue_params[:assignee_id].present? + [:state_event, :milestone_id, :assignee_id, :label_ids, :add_label_ids, :remove_label_ids].each do |key| + issue_params.delete(key) unless issue_params[key].present? + end issues = Issue.where(id: issues_ids) issues.each do |issue| |