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:
Julio Cesar Laura Avendaño
2021-02-01 18:34:26 +00:00

View File

@@ -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])) {