mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 09:05:32 +00:00
BUGFIX: Fixed notice from array_filter when the value is null
This commit is contained in:
parent
9eb9b35871
commit
b29d8d2bba
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user