From c39dbc8ea31d1741d6a65450b5b7430b6e9254f4 Mon Sep 17 00:00:00 2001 From: PatriziaKamp Date: Mon, 15 Oct 2018 00:29:43 +0200 Subject: [PATCH] ATLDEV-152 mini fix --- src/main/resources/js/timesheet.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/js/timesheet.js b/src/main/resources/js/timesheet.js index bc0149ef..882465c4 100644 --- a/src/main/resources/js/timesheet.js +++ b/src/main/resources/js/timesheet.js @@ -176,10 +176,10 @@ function replaceJiraTicketLinks() { if (ticket.text == "None") { AJS.$(ticket).removeAttr("href"); } - else if (ticket.text.includes(",")) { + else if (ticket.text.includes(" --- ")) { var ticketsKeyStringArray = []; - var thisTicketStringArray = ticket.text.split(","); + var thisTicketStringArray = ticket.text.split(" --- "); for (var j = 0; j < thisTicketStringArray.length; j++) { @@ -187,7 +187,7 @@ function replaceJiraTicketLinks() { var ticketKey = ""; if (thisTicketString.includes(" : ")) { - ticketKey = thisTicketString.split(" ")[0]; + ticketKey = thisTicketString.split(" : ")[0]; ticketsKeyStringArray.push(ticketKey); } else {