mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
Merge pull request #67 from 3Dgoo/bugfix/string-tag-field-null-passed
Fixing setValue null value bug
This commit is contained in:
commit
05a1990f20
@ -223,6 +223,10 @@ class StringTagField extends DropdownField
|
||||
$value = $source->column('ID');
|
||||
}
|
||||
|
||||
if (is_null($value)) {
|
||||
$value = array();
|
||||
}
|
||||
|
||||
return parent::setValue(array_filter($value));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user