mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Fixed regression on AttributeInteger
SVN:trunk[1088]
This commit is contained in:
@@ -567,7 +567,7 @@ class AttributeInteger extends AttributeDBField
|
||||
public function MakeRealValue($proposedValue)
|
||||
{
|
||||
if (is_null($proposedValue)) return null;
|
||||
if ($proposedValue == '') return null;
|
||||
if ($proposedValue === '') return null; // 0 is transformed into '' !
|
||||
return (int)$proposedValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user