From 167db5dba0f0a9091e31181eb9910c6fe29ab37f Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:54:06 +0000 Subject: [PATCH] Update to handle new helpdesk ticket logic --- app/helpers/merge_requests_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index b8b2f5e13..5550e7259 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -19,7 +19,7 @@ module MergeRequestsHelper end def merge_request_action_text_helper(attribute, merge_request) - merge_request.send(attribute).blank? ? "" : "Change" + merge_request.send(attribute).present? || (attribute == "helpdesk_ticket" && merge_request.has_helpdesk_ticket == false) ? "Change" : "" end def request_details(merge_request)