N°8272 - Portal : Unable to save a date in French format - rollback removed code for N°7145

This commit is contained in:
Anne-Cath
2025-03-18 16:58:50 +01:00
parent a9bc4973b4
commit a103c458cb

View File

@@ -6346,7 +6346,15 @@ class AttributeDateTime extends AttributeDBField
$oFormField = parent::MakeFormField($oObject, $oFormField);
return $oFormField;
// After call to the parent as it sets the current value
$oValue = $oObject->Get($this->GetCode());
if ($oValue === $this->GetNullValue()) {
$oValue = $this->GetDefaultValue($oObject);
}
$oFormField->SetCurrentValue($this->GetFormat()->Format($oValue));
return $oFormField;
}
/**