From acbe68472ecb4f3ce0481665569e70c823761d77 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 21 Sep 2012 10:05:07 +0000 Subject: [PATCH] [-] FO : instant search relevancy fixed #PSCFV-4267 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17454 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/SearchController.php | 2 +- modules/blocktopmenu/blocktopmenu.tpl | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/controllers/front/SearchController.php b/controllers/front/SearchController.php index b3ccbc4bf..665388b74 100644 --- a/controllers/front/SearchController.php +++ b/controllers/front/SearchController.php @@ -72,7 +72,7 @@ class SearchControllerCore extends FrontController $this->productSort(); $this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE')))); $this->p = abs((int)(Tools::getValue('p', 1))); - $search = Search::find($this->context->language->id, $query, $this->p, $this->n, $this->orderBy, $this->orderWay); + $search = Search::find($this->context->language->id, $query, 1, 10, 'position', 'desc'); Hook::exec('actionSearch', array('expr' => $query, 'total' => $search['total'])); $nbProducts = $search['total']; $this->pagination($nbProducts); diff --git a/modules/blocktopmenu/blocktopmenu.tpl b/modules/blocktopmenu/blocktopmenu.tpl index 65e1e540c..f85be7fa0 100644 --- a/modules/blocktopmenu/blocktopmenu.tpl +++ b/modules/blocktopmenu/blocktopmenu.tpl @@ -8,10 +8,12 @@ {if $MENU_SEARCH} {/if}