mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
Fixed issue with null value for an Enum that would be hidden in a given state, being handled as an empty string, which is not an allowed value.
SVN:trunk[541]
This commit is contained in:
@@ -602,6 +602,17 @@ abstract class DBObject
|
||||
}
|
||||
elseif ($oAtt->IsWritable() && $oAtt->IsScalar())
|
||||
{
|
||||
if (is_null($toCheck))
|
||||
{
|
||||
if ($oAtt->IsNullAllowed())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$aValues = $oAtt->GetAllowedValues();
|
||||
if (count($aValues) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user