N°6042 Console : save values of AttDef with the FormField edit class

For this kinf of AttDef we are calling a new AttributeDefinition::ReadValueFromPostedForm method
This commit is contained in:
Pierre Goiffon
2023-03-23 11:13:03 +01:00
parent 0c70bd9f12
commit 3e6ab57094

View File

@@ -2516,6 +2516,7 @@ HTML;
/** @var \Combodo\iTop\Form\Field\Field $sFormFieldClass */
$sFormFieldClass = $oAttDef::GetFormFieldClass();
$oAttDefField = new $sFormFieldClass($sAttCode.'_field');
$oAttDefField->SetCurrentValue($value); // value transformation might be delegated in a custom FieldRenderer
$oForm->AddField($oAttDefField);
}
@@ -4273,6 +4274,7 @@ HTML;
break;
case 'CustomFields':
case 'FormField':
$value = $oAttDef->ReadValueFromPostedForm($this, $sFormPrefix);
break;