diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-03 20:25:37 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-07 16:57:28 +0300 |
commit | c53f2d8ebc64ef59f67265ae7c6b96a3c127cea7 (patch) | |
tree | 3a9291d8c45dcff64e5e6efc648071e17433ba50 /app/helpers/issuables_helper.rb | |
parent | 55dd0d722d87a24f3b83a8a7692666a64387d668 (diff) |
Revert parent param removal
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r-- | app/helpers/issuables_helper.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index 6f887accf58..64a64958691 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -247,7 +247,8 @@ module IssuablesHelper def close_issuable_url(issuable) params = {} - params[:state_event] = :close + params[issuable.model_name.to_s.underscore] = {} + params[issuable.model_name.to_s.underscore][:state_event] = :close params[:format] = :json if issuable.is_a?(Issue) issuable_url(issuable, params) @@ -255,7 +256,8 @@ module IssuablesHelper def reopen_issuable_url(issuable) params = {} - params[:state_event] = :reopen + params[issuable.model_name.to_s.underscore] = {} + params[issuable.model_name.to_s.underscore][:state_event] = :reopen params[:format] = :json if issuable.is_a?(Issue) issuable_url(issuable, params) |