#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!) -reintegrated from trunk

SVN:2.0[2736]
This commit is contained in:
Romain Quetiez
2013-05-15 10:25:01 +00:00
parent 30509e1b5b
commit 49a94dac1f

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