PM-3340
0018094: Batch routing doesn-t work in ProcessMaker 3.0.x
This commit is contained in:
@@ -88,7 +88,11 @@ class ConsolidatedCases
|
||||
$json = G::json_decode($dataDyna["DYN_CONTENT"]);
|
||||
$fieldsDyna = $json->items[0]->items;
|
||||
foreach ($fieldsDyna as $value) {
|
||||
$_POST['form']['FIELDS'][] = ($value[0]->type !== 'panel') ? $value[0]->name . '-' . $value[0]->type : $value[0]->id . '-' . $value[0]->type;
|
||||
if(isset($value[0]->type)){
|
||||
if ($value[0]->type == 'text' || $value[0]->type == 'textarea' || $value[0]->type == 'dropdown' || $value[0]->type == 'checkbox' || $value[0]->type == 'datetime' || $value[0]->type == 'yesno' || $value[0]->type == 'date' || $value[0]->type == 'hidden' || $value[0]->type == 'currency' || $value[0]->type == 'percentage' || $value[0]->type == 'link'){
|
||||
$_POST['form']['FIELDS'][] = $value[0]->name . '-' . $value[0]->type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$aFieldsClases = array();
|
||||
|
||||
@@ -467,7 +467,7 @@ class Consolidated
|
||||
$xmlfrm = new \stdclass();
|
||||
$xmlfrm->fields = array();
|
||||
foreach ($fieldsDyna as $key => $value) {
|
||||
if ($value[0]->type == 'title' || $value[0]->type == 'submit' || $value[0]->type == 'panel' || $value[0]->type == 'image' || $value[0]->type == 'button' || $value[0]->type == 'grid' || $value[0]->type == 'checkgroup' || $value[0]->type == 'radiogroup' || $value[0]->type == 'radio' || $value[0]->type == 'hidden' || $value[0]->type == 'link' || $value[0]->type == 'file' || $value[0]->type == 'subform') {
|
||||
if ($value[0]->type == 'title' || $value[0]->type == 'submit' || $value[0]->type == 'panel' || $value[0]->type == 'image' || $value[0]->type == 'button' || $value[0]->type == 'grid' || $value[0]->type == 'checkgroup' || $value[0]->type == 'radiogroup' || $value[0]->type == 'radio' || $value[0]->type == 'hidden' || $value[0]->type == 'link' || $value[0]->type == 'file' || $value[0]->type == 'subform' || $value[0]->type == 'label') {
|
||||
continue;
|
||||
}
|
||||
$temp = new \stdclass();
|
||||
@@ -480,7 +480,11 @@ class Consolidated
|
||||
if (!empty($value[0]->options)) {
|
||||
$temp->storeData = '[';
|
||||
foreach ($value[0]->options as $valueOption) {
|
||||
@$temp->storeData .= '["' . $valueOption->value . '", "' . $valueOption->label . '"],';
|
||||
if(isset($valueOption->value)){
|
||||
$temp->storeData .= '["' . $valueOption->value . '", "' . $valueOption->label . '"],';
|
||||
}else{
|
||||
$temp->storeData .= '["' . $valueOption['value'] . '", "' . $valueOption['label'] . '"],';
|
||||
}
|
||||
}
|
||||
$temp->storeData = substr($temp->storeData,0,-1);
|
||||
$temp->storeData .= ']';
|
||||
|
||||
Reference in New Issue
Block a user