소스 검색

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 9 년 전
부모
커밋
6ae7b96076
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()));
 			}
 		}