}\r
var prefName = "slc.batch.autoclear";\r
var prefValue = this.getRiaPreferenceValue(prefName);\r
- if(prefValue !== null){\r
- this.executeBatchOnAgent(batchAgentId, prefValue);\r
- return;\r
+ if(prefValue !== null && prefValue === true){\r
+ this.executeBatchOnAgent(batchAgentId, true); \r
+ }else{\r
+ this.executeBatchOnAgent(batchAgentId, false);\r
}\r
+ return;\r
var modal = new org.argeo.ria.components.Modal("Clear?", null);\r
modal.addYesNoReminder("Do you want to clear the batch automatically after execution?", prefName);\r
modal.addListener("cancel", function(e){\r