Merge branch 'ent-11358-error-500-en-bulk-operations-agentes' into 'develop'
Ent 11358 error 500 en bulk operations agentes See merge request artica/pandorafms!5982
This commit is contained in:
commit
e4c605a1e5
|
@ -1190,6 +1190,7 @@ function mysql_db_format_array_to_update_sql($values)
|
|||
$fields = [];
|
||||
|
||||
foreach ($values as $field => $value) {
|
||||
if (is_object($value) === false) {
|
||||
if (is_numeric($field)) {
|
||||
array_push($fields, $value);
|
||||
continue;
|
||||
|
@ -1215,6 +1216,7 @@ function mysql_db_format_array_to_update_sql($values)
|
|||
|
||||
array_push($fields, $sql);
|
||||
}
|
||||
}
|
||||
|
||||
return implode(', ', $fields);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue