mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
mvc: multiselect may allow empty option, no need to give blank item too
This commit is contained in:
parent
20f41070bc
commit
c0838ddfc0
@ -189,7 +189,7 @@ class ModelRelationField extends BaseField
|
||||
if (isset(self::$internalOptionList[$this->internalCacheKey]) &&
|
||||
is_array(self::$internalOptionList[$this->internalCacheKey])) {
|
||||
// if relation is not required, add empty option
|
||||
if (!$this->internalIsRequired) {
|
||||
if (!$this->internalIsRequired && !$this->internalMultiSelect) {
|
||||
$result[""] = array("value"=>"none", "selected" => 0);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user