aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-13 08:43:15 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-13 08:43:15 +0200
commit616f9fea26af9d9c9dd6134388811c120f1e9656 (patch)
tree50629eef70210a9aadade49ac73c040179bf6862 /src/Wallabag
parenta3bcd60a378946a68e67a3b609d7ef126b014ee6 (diff)
downloadwallabag-616f9fea26af9d9c9dd6134388811c120f1e9656.tar.gz
wallabag-616f9fea26af9d9c9dd6134388811c120f1e9656.tar.zst
wallabag-616f9fea26af9d9c9dd6134388811c120f1e9656.zip
forgot case for previewPicture filter
Diffstat (limited to 'src/Wallabag')
-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);