Skip to content

Commit

Permalink
Merge pull request #444 from skateman/custom-action-task-id
Browse files Browse the repository at this point in the history
Include task_id in the response when invoking a custom button
  • Loading branch information
abellotti authored Aug 17, 2018
2 parents 999655e + bce3c6f commit 022cf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/base_controller/generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def invoke_custom_action_with_dialog(type, resource, action, data, custom_button
wf_result = submit_custom_action_dialog(resource, custom_button, data)
action_result(true,
"Invoked custom dialog action #{action} for #{type} id: #{resource.id}",
:result => wf_result[:request])
:result => wf_result[:request], :task_id => wf_result[:task_id])
rescue => err
action_result(false, err.to_s)
end
Expand Down

0 comments on commit 022cf03

Please sign in to comment.