Procházet zdrojové kódy

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 před 9 roky
rodič
revize
6ae7b96076
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()));
 			}
 		}