Explorar el Código

Regression: properly initialize mandatory date (and time) attributes when using a custom date/time format.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4086 a333f486-631f-4898-b8df-5754b55c2be0
dflaven hace 9 años
padre
commit
6ae7b96076
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/dbobject.class.php

+ 1 - 1
core/dbobject.class.php

@@ -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()));
 			}
 		}