diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-24 15:08:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-24 15:08:28 +0000 |
commit | 8e1bb8745bafe36f273ce4a095c3576c38ceb8b4 (patch) | |
tree | ec27d8dc078480009afe783f7bea87d3927f28f1 /app/helpers/merge_requests_helper.rb | |
parent | 4b4c254b2cfaca26c2c8e2bda70d45c13e3a6f97 (diff) | |
download | gitlab-ce-8e1bb8745bafe36f273ce4a095c3576c38ceb8b4.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/merge_requests_helper.rb')
-rw-r--r-- | app/helpers/merge_requests_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index e1c9e7d3896..230f5e4921c 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -139,7 +139,7 @@ module MergeRequestsHelper end def toggle_draft_merge_request_path(issuable) - wip_event = issuable.work_in_progress? ? 'unwip' : 'wip' + wip_event = issuable.draft? ? 'unwip' : 'wip' issuable_path(issuable, { merge_request: { wip_event: wip_event } }) end |