diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-09-13 08:43:15 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-09-13 08:43:15 +0200 |
commit | 616f9fea26af9d9c9dd6134388811c120f1e9656 (patch) | |
tree | 50629eef70210a9aadade49ac73c040179bf6862 /src | |
parent | a3bcd60a378946a68e67a3b609d7ef126b014ee6 (diff) | |
download | wallabag-616f9fea26af9d9c9dd6134388811c120f1e9656.tar.gz wallabag-616f9fea26af9d9c9dd6134388811c120f1e9656.tar.zst wallabag-616f9fea26af9d9c9dd6134388811c120f1e9656.zip |
forgot case for previewPicture filter
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Filter/EntryFilterType.php | 6 |
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); |