Merge pull request #46 from webbuilders-group/master

BUGFIX: Fixed notice from array_filter when the value is null
This commit is contained in:
Christopher Pitt 2015-10-07 05:59:05 +13:00
commit 2562d0e501
1 changed files with 4 additions and 0 deletions

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));
}