소스 검색

The default value for Date fields is different than for DateTime fields: no 'time' part at the end (use the attribute's own format)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1465 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 년 전
부모
커밋
6fabdb8e02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/attributedef.class.inc.php

+ 1 - 1
core/attributedef.class.inc.php

@@ -1985,7 +1985,7 @@ class AttributeDateTime extends AttributeDBField
 		{
 			if (empty($default))
 			{
-				$default = date(self::GetDateFormat());
+				$default = date($this->GetDateFormat());
 			}
 		}