1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 23:00:51 +03:00

fix property type select

This commit is contained in:
Mzhelskiy Maxim 2014-04-02 11:53:56 +07:00
parent 04e9883b2d
commit 4003e1e487

View file

@ -37,6 +37,9 @@ class ModuleProperty_EntityValueTypeSelect extends ModuleProperty_EntityValueTyp
$oProperty=$this->getValueObject()->getProperty();
$iValue=$this->getValueForValidate();
if (is_array($iValue)) {
$iValue=array_filter($iValue);
}
if (!$iValue and $oProperty->getValidateRuleOne('allowEmpty')) {
return true;
}