Commit 73730458 authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug with checkboxes management in run workflow. The checkboxes in...

Fix bug with checkboxes management in run workflow. The checkboxes in handsontables are now excluded from global management.
parent 2407af42
......@@ -426,7 +426,7 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
var datas = $(this).handsontable("getData");
for (var idx = 0; idx < datas.length; idx++) {
for (var sub_param in datas[idx]) {
if ( datas[idx][sub_param] != null && datas[idx][sub_param] != "" ) {
if ( datas[idx][sub_param] != null && datas[idx][sub_param] !== "" ) {
hash_param[sub_param+"___"+idx] = new Array();
hash_param[sub_param+"___"+idx].push(datas[idx][sub_param]);
}
......@@ -453,7 +453,9 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
}
$("#workflow_form :checkbox").each(function(){
if (!$(this).prop('checked')) { params += $(this).attr("name") + "=false&"; }
if( $(this).parents("[id^=handsontable_]").length == 0 ){ // Exclude checkboxes from handsontable
if (!$(this).prop('checked')) { params += $(this).attr("name") + "=false&"; }
}
});
$this.$element.on("uploaded.wfform", function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment