From: Nicolas LÅ“uillet Date: Sun, 13 Sep 2015 06:43:15 +0000 (+0200) Subject: forgot case for previewPicture filter X-Git-Tag: 2.0.0-alpha.0~3^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=616f9fea26af9d9c9dd6134388811c120f1e9656;hp=a3bcd60a378946a68e67a3b609d7ef126b014ee6;p=github%2Fwallabag%2Fwallabag.git forgot case for previewPicture filter --- 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 ->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);