mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Regression: properly initialize mandatory date (and time) attributes when using a custom date/time format.
SVN:trunk[4086]
This commit is contained in:
@@ -712,7 +712,7 @@ abstract class DBObject implements iDisplay
|
||||
// AttributeDate is derived from AttributeDateTime
|
||||
if (($oAttDef instanceof AttributeDateTime) && (!$oAttDef->IsNullAllowed()) && ($this->Get($sAttCode) == $oAttDef->GetNullValue()))
|
||||
{
|
||||
$this->Set($sAttCode, date($oAttDef->GetFormat()));
|
||||
$this->Set($sAttCode, date($oAttDef->GetInternalFormat()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user