Skip to content

Commit

Permalink
Merge pull request #67 from 3Dgoo/bugfix/string-tag-field-null-passed
Browse files Browse the repository at this point in the history
Fixing setValue null value bug
  • Loading branch information
Damian Mooyman committed Dec 13, 2015
2 parents 96c48ab + be0565c commit 05a1990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/StringTagField.php
Expand Up @@ -223,6 +223,10 @@ public function setValue($value, $source = null)
$value = $source->column('ID');
}

if (is_null($value)) {
$value = array();
}

return parent::setValue(array_filter($value));
}

Expand Down

0 comments on commit 05a1990

Please sign in to comment.