Skip to content

Commit

Permalink
ATLDEV-152 mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamppa committed Oct 14, 2018
1 parent 0b0dd87 commit c39dbc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/js/timesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,18 @@ 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++) {

var thisTicketString = thisTicketStringArray[j];
var ticketKey = "";

if (thisTicketString.includes(" : ")) {
ticketKey = thisTicketString.split(" ")[0];
ticketKey = thisTicketString.split(" : ")[0];
ticketsKeyStringArray.push(ticketKey);
}
else {
Expand Down

0 comments on commit c39dbc8

Please sign in to comment.