forgot case for previewPicture filter

This commit is contained in:
Nicolas Lœuillet 2015-09-13 08:43:15 +02:00
parent a3bcd60a37
commit 616f9fea26

View file

@ -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);