mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 19:11:07 +00:00
forgot case for previewPicture filter
This commit is contained in:
parent
a3bcd60a37
commit
616f9fea26
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ class EntryFilterType extends AbstractType
|
|||
->add('isStarred', 'filter_checkbox')
|
||||
->add('previewPicture', 'filter_checkbox', array(
|
||||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||
$value = $values['value'];
|
||||
|
||||
if (false === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
$expression = $filterQuery->getExpr()->isNotNull($field);
|
||||
|
||||
return $filterQuery->createCondition($expression);
|
||||
|
|
Loading…
Reference in a new issue