From ddb83e67bfb743c5273c0e2eb34ddd5becf55614 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Thu, 7 Nov 2019 11:20:40 +0100 Subject: [PATCH] add missing var and returning "" instead of null --- process/Ticket_lib/process.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process/Ticket_lib/process.js b/process/Ticket_lib/process.js index dca0cd1770..185c069e60 100644 --- a/process/Ticket_lib/process.js +++ b/process/Ticket_lib/process.js @@ -122,7 +122,8 @@ TicketUtils.prototype.getTypeAttributes = function() TicketUtils.prototype.getAvailableStatus = function() { states = JSON.parse(KeywordUtils.getAttributeRelation(this.type, $KeywordRegistry.ticketType(), "availableStatus", "")) - + if (states == null) + return ""; return states; } -- GitLab