1
0
Fork 0
forked from deblan/gist

Title filter in account page

This commit is contained in:
Simon Vieille 2017-04-23 16:30:26 +02:00
parent 9dfbde6730
commit 36f4fb98ff

View file

@ -64,6 +64,10 @@ class User extends BaseUser implements UserInterface
$query->filterByType($options['type']);
}
if (!empty($options['title'])) {
$query->filterByTitle('%'.$options['title'].'%', Criteria::LIKE);
}
if (!empty($options['cipher']) && $options['cipher'] !== 'anyway') {
$bools = array(
'yes' => true,