From 0d1ca31fc9bf6efe260810b216990383678fc2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 6 Jan 2015 21:27:06 +0100 Subject: [PATCH] fix pattern show on search --- Search/PersonSearch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Search/PersonSearch.php b/Search/PersonSearch.php index e134b8ce7..dda98721c 100644 --- a/Search/PersonSearch.php +++ b/Search/PersonSearch.php @@ -76,7 +76,8 @@ class PersonSearch extends AbstractSearch return $this->container->get('templating')->render('ChillPersonBundle:Person:list.html.twig', array( 'persons' => $this->search($terms, $start, $limit, $options), - 'pattern' => 'trim($pattern)', + 'pattern' => $this->recomposePattern($terms, array('nationality', + 'firstname', 'lastname', 'birthdate', 'gender'), $terms['_domain']), 'total' => $this->count($terms) )); }