Merged in bugfix/PMCORE-1881 (pull request #7800)
PMCORE-1881 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com> Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
@@ -5058,15 +5058,13 @@ class WorkspaceTools
|
||||
foreach ($fieldTypes as $key => $fieldType) {
|
||||
foreach ($fieldType as $fieldTypeKey => $fieldTypeValue) {
|
||||
if (strtoupper($appDataKey) == $fieldTypeKey) {
|
||||
$appData[$appDataKey] = validateType($appDataValue, $fieldTypeValue);
|
||||
$appDataValue = validateType($appDataValue, $fieldTypeValue);
|
||||
unset($fieldTypeKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
// normal fields
|
||||
if (trim($appDataValue) === '') {
|
||||
$appData[$appDataKey] = null;
|
||||
}
|
||||
$appData[$appDataKey] = $appDataValue === '' ? null : $appDataValue;
|
||||
} else {
|
||||
// grids
|
||||
if (is_array($appData[$appDataKey])) {
|
||||
|
||||
Reference in New Issue
Block a user