BUGFIX: Fixed notice from array_filter when the value is null

This commit is contained in:
UndefinedOffset 2015-10-06 12:02:36 -03:00
parent 9eb9b35871
commit b29d8d2bba

View File

@ -207,6 +207,10 @@ class TagField extends DropdownField {
$value = $value->column('ID');
}
if(!is_array($value)) {
return parent::setValue($value);
}
return parent::setValue(array_filter($value));
}