Remove unused task_[un]check
states from Update services
These were left over from the old Task handling.
This commit is contained in:
parent
d991e3e41a
commit
0e5fbb29f4
2 changed files with 2 additions and 11 deletions
|
@ -8,10 +8,6 @@ module Issues
|
|||
Issues::ReopenService.new(project, current_user, {}).execute(issue)
|
||||
when 'close'
|
||||
Issues::CloseService.new(project, current_user, {}).execute(issue)
|
||||
when 'task_check'
|
||||
issue.update_nth_task(params[:task_num].to_i, true)
|
||||
when 'task_uncheck'
|
||||
issue.update_nth_task(params[:task_num].to_i, false)
|
||||
end
|
||||
|
||||
params[:assignee_id] = "" if params[:assignee_id] == IssuableFinder::NONE
|
||||
|
@ -20,8 +16,7 @@ module Issues
|
|||
filter_params
|
||||
old_labels = issue.labels.to_a
|
||||
|
||||
if params.present? && issue.update_attributes(params.except(:state_event,
|
||||
:task_num))
|
||||
if params.present? && issue.update_attributes(params.except(:state_event))
|
||||
issue.reset_events_cache
|
||||
|
||||
if issue.labels != old_labels
|
||||
|
|
|
@ -18,10 +18,6 @@ module MergeRequests
|
|||
MergeRequests::ReopenService.new(project, current_user, {}).execute(merge_request)
|
||||
when 'close'
|
||||
MergeRequests::CloseService.new(project, current_user, {}).execute(merge_request)
|
||||
when 'task_check'
|
||||
merge_request.update_nth_task(params[:task_num].to_i, true)
|
||||
when 'task_uncheck'
|
||||
merge_request.update_nth_task(params[:task_num].to_i, false)
|
||||
end
|
||||
|
||||
params[:assignee_id] = "" if params[:assignee_id] == IssuableFinder::NONE
|
||||
|
@ -31,7 +27,7 @@ module MergeRequests
|
|||
old_labels = merge_request.labels.to_a
|
||||
|
||||
if params.present? && merge_request.update_attributes(
|
||||
params.except(:state_event, :task_num)
|
||||
params.except(:state_event)
|
||||
)
|
||||
merge_request.reset_events_cache
|
||||
|
||||
|
|
Loading…
Reference in a new issue