mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-30 15:25:16 +01:00
Lower domain search length
When searching for "bbc" I got no result .. sigh.
This commit is contained in:
parent
d2fcbf5d84
commit
1137fae94d
@ -33,7 +33,7 @@ class EntryFilterType extends AbstractType
|
||||
->add('domainName', 'filter_text', array(
|
||||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||
$value = $values['value'];
|
||||
if (strlen($value) <= 3 || empty($value)) {
|
||||
if (strlen($value) <= 2 || empty($value)) {
|
||||
return;
|
||||
}
|
||||
$expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user