N°8281 - Unable to click search button in multiple request template

This commit is contained in:
jf-cbd
2025-03-21 11:05:08 +01:00
parent 874a5fd2ce
commit 5232694c04

View File

@@ -1107,15 +1107,17 @@ class ObjectFormManager extends FormManager
// First we need to update the Object with its new values in order to enable the dependents fields to update
$sObjectClass = get_class($this->oObject);
foreach ($aCurrentValues as $sAttCode => $value) {
if (!array_key_exists($sAttCode, $this->aFieldsAtts)) {
continue;
}
$iAttributeFlags = $this->aFieldsAtts[$sAttCode];
if ($iAttributeFlags & OPT_ATT_HIDDEN) {
continue;
}
if ($iAttributeFlags & OPT_ATT_READONLY) {
continue;
if (count($this->aFieldsAtts) !== 0) {
if (!array_key_exists($sAttCode, $this->aFieldsAtts)) {
continue;
}
$iAttributeFlags = $this->aFieldsAtts[$sAttCode];
if ($iAttributeFlags & OPT_ATT_HIDDEN) {
continue;
}
if ($iAttributeFlags & OPT_ATT_READONLY) {
continue;
}
}
if (MetaModel::IsValidAttCode($sObjectClass, $sAttCode)) {