diff --git a/src/main/webapp/resources/js/base/base-fims.js b/src/main/webapp/resources/js/base/base-fims.js index e83e9121..238e85e9 100644 --- a/src/main/webapp/resources/js/base/base-fims.js +++ b/src/main/webapp/resources/js/base/base-fims.js @@ -80,10 +80,18 @@ class FimsFormFields extends FormFields { document.querySelectorAll(this.children).forEach(input => { let property = input.name || input.id; let value = input.value; - if ("radio" == input.type) { - if (input.checked) + if("radio" == input.type) { + if(input.checked) obj[property] = value; - } else { + } else if("checkbox" == input.type) { + if(input.checked){ + if(obj[property]){ + obj[property] += ","+value; + } else { + obj[property] = value; + } + } + } else { if(input.dataset.fmtType){ const fmtType = input.dataset.fmtType; switch (fmtType) {