#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!)

SVN:trunk[2735]
This commit is contained in:
Romain Quetiez
2013-05-15 10:23:06 +00:00
parent efc3b4df07
commit ad9ed96960

View File

@@ -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
}
}