瀏覽代碼

#673 Could not create a physical interface with default value for the speed (+ definitive corruption of the DB for the device on which the interface is being created!)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2735 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 年之前
父節點
當前提交
fcf7d68031
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/attributedef.class.inc.php

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

@@ -1237,7 +1237,7 @@ class AttributeDecimal extends AttributeDBField
 	public function ScalarToSQL($value)
 	{
 		assert(is_null($value) || preg_match('/'.$this->GetValidationPattern().'/', $value));
-		return (string)$value; // treated as a string
+		return $value; // null or string
 	}
 }