diff --git a/src/main/webapp/resources/js/fims/cmmn/customElements.js b/src/main/webapp/resources/js/fims/cmmn/customElements.js index c4cec040..6e276fee 100644 --- a/src/main/webapp/resources/js/fims/cmmn/customElements.js +++ b/src/main/webapp/resources/js/fims/cmmn/customElements.js @@ -270,7 +270,9 @@ class CurlyBrackets extends HTMLTemplateElement { let tdCheckboxes = thisCon.querySelectorAll("td>input[type='checkbox']"); tdCheckboxes.forEach(function(node) { - if(node.getAttribute("value") != null && node.getAttribute("value") != "" && node.getAttribute("value") != "on"){ + if(node.getAttribute("value") != null && node.getAttribute("value") != "" + && node.getAttribute("value") != "on" + && node.getAttribute("value").indexOf(curlyBracketsOpen) == -1){ node.setAttribute("value","{"+node.getAttribute("value")+"}"); } if(node.getAttribute("onchange") != null && node.getAttribute("onchange") == ""){ @@ -280,7 +282,9 @@ class CurlyBrackets extends HTMLTemplateElement { let tdRadios = thisCon.querySelectorAll("td>input[type='radio']"); tdRadios.forEach(function(node) { - if(node.getAttribute("value") != null && node.getAttribute("value") != "" && node.getAttribute("value") != "on"){ + if(node.getAttribute("value") != null && node.getAttribute("value") != "" + && node.getAttribute("value") != "on" + && node.getAttribute("value").indexOf(curlyBracketsOpen) == -1){ node.setAttribute("value","{"+node.getAttribute("value")+"}"); } if(node.getAttribute("onchange") != null && node.getAttribute("onchange") == ""){