Index: ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.js =================================================================== diff -u -r41031 -r41032 --- ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.js (.../routineMonitoringForm.js) (revision 41031) +++ ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.js (.../routineMonitoringForm.js) (revision 41032) @@ -383,13 +383,22 @@ name: 'configItemOption' + id, xtype: 'hidden', hidden: allowBlank, - value: value + value: '' }); if (options != "") { var optionsJson = JSON.parse(options); + var optionNames = []; + if (value != null && value !== '') { + var newValue = value.substring(1); + newValue = '[' + newValue + ']'; + var valueObj = JSON.parse(newValue); + for (var k = 0; k < valueObj.length; k++) { + optionNames.push(valueObj[k].name) + } + } for (var j = 0; j < optionsJson.length; j++) { var checked = false; - if (value != null && value.indexOf(JSON.stringify(optionsJson[j])) != -1) { + if (optionNames.indexOf(optionsJson[j].name) != -1) { checked = true; } optionsArray.push({