diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-08-24 20:43:58 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-09-13 13:35:12 +0200 |
commit | 1137fae94dda0fcd55ee391cc4c1afef5df28d52 (patch) | |
tree | d20434d7af5543bec27111f9aa2fed4e3a219305 /src | |
parent | d2fcbf5d846eabb89714f4c59ff6729e2666a948 (diff) | |
download | wallabag-1137fae94dda0fcd55ee391cc4c1afef5df28d52.tar.gz wallabag-1137fae94dda0fcd55ee391cc4c1afef5df28d52.tar.zst wallabag-1137fae94dda0fcd55ee391cc4c1afef5df28d52.zip |
Lower domain search length
When searching for "bbc" I got no result .. sigh.
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Filter/EntryFilterType.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php index de95eed9..024486e6 100644 --- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php | |||
@@ -33,7 +33,7 @@ class EntryFilterType extends AbstractType | |||
33 | ->add('domainName', 'filter_text', array( | 33 | ->add('domainName', 'filter_text', array( |
34 | 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { | 34 | 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { |
35 | $value = $values['value']; | 35 | $value = $values['value']; |
36 | if (strlen($value) <= 3 || empty($value)) { | 36 | if (strlen($value) <= 2 || empty($value)) { |
37 | return; | 37 | return; |
38 | } | 38 | } |
39 | $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%')); | 39 | $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%')); |