Unverified Commit f6ee55aa authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix issue/mr close/reopen via API


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6130b25399a4
module Issues
class UpdateService < Issues::BaseService
def execute(issue)
state = params.delete('state_event')
state = params.delete('state_event') || params.delete(:state_event)
case state
when 'reopen'
......
......@@ -10,7 +10,7 @@ def execute(merge_request)
params.delete(:source_project_id)
params.delete(:target_project_id)
state = params.delete('state_event')
state = params.delete('state_event') || params.delete(:state_event)
case state
when 'reopen'
......
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