mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 17:41:01 +00:00
fixup! Handle only upper or only lower reading filter
This commit is contained in:
parent
1bdbc39f02
commit
2c00dddf01
1 changed files with 2 additions and 2 deletions
|
@ -45,10 +45,10 @@ class EntryFilterType extends AbstractType
|
|||
if (null === $lower && null === $upper) {
|
||||
// no value? no filter
|
||||
return;
|
||||
} else if (null === $lower && null !== $upper) {
|
||||
} elseif (null === $lower && null !== $upper) {
|
||||
// only lower value is defined: query all entries with reading LOWER THAN this value
|
||||
$expression = $filterQuery->getExpr()->lte($field, $max);
|
||||
} else if (null !== $lower && null === $upper) {
|
||||
} elseif (null !== $lower && null === $upper) {
|
||||
// only upper value is defined: query all entries with reading GREATER THAN this value
|
||||
$expression = $filterQuery->getExpr()->gte($field, $min);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue