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:
parent
04e9883b2d
commit
4003e1e487
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue