Allow using zero-keys in Filter widget options

This commit is contained in:
Stanislav Rimsha 2017-07-14 15:57:47 +02:00
parent 4d1bec860d
commit 6f691680cf
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');