Merge pull request #2968 from slowpokefarm/master

Allow using zero-keys in Filter widget options
This commit is contained in:
Samuel Georges 2017-07-15 00:05:39 +10:00 committed by GitHub
commit dc3e521c36
1 changed files with 2 additions and 1 deletions

View File

@ -742,7 +742,8 @@ class Filter extends WidgetBase
}
foreach ($options as $option) {
if (!$id = array_get($option, 'id')) {
$id = array_get($option, 'id');
if ($id === null) {
continue;
}
$processed[$id] = array_get($option, 'name');