Преглед изворни кода

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