diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-09-13 09:57:35 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-09-13 10:11:22 +0200 |
commit | 497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb (patch) | |
tree | 9da03f14eab17a8b32b8d6250d90d76b87302be2 /src/Wallabag/CoreBundle/Filter/EntryFilterType.php | |
parent | 616f9fea26af9d9c9dd6134388811c120f1e9656 (diff) | |
download | wallabag-497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb.tar.gz wallabag-497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb.tar.zst wallabag-497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb.zip |
add test for previewPicture filter
Diffstat (limited to 'src/Wallabag/CoreBundle/Filter/EntryFilterType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Filter/EntryFilterType.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php index 11c69abd..de95eed9 100644 --- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php | |||
@@ -45,9 +45,7 @@ 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']; | 48 | if (false === $values['value']) { |
49 | |||
50 | if (false === $value) { | ||
51 | return; | 49 | return; |
52 | } | 50 | } |
53 | 51 | ||