aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Filter/EntryFilterType.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php
index c0b89196..11c69abd 100644
--- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php
+++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php
@@ -45,6 +45,12 @@ class EntryFilterType extends AbstractType
45 ->add('isStarred', 'filter_checkbox') 45 ->add('isStarred', 'filter_checkbox')
46 ->add('previewPicture', 'filter_checkbox', array( 46 ->add('previewPicture', 'filter_checkbox', array(
47 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { 47 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
48 $value = $values['value'];
49
50 if (false === $value) {
51 return;
52 }
53
48 $expression = $filterQuery->getExpr()->isNotNull($field); 54 $expression = $filterQuery->getExpr()->isNotNull($field);
49 55
50 return $filterQuery->createCondition($expression); 56 return $filterQuery->createCondition($expression);