// fix about #PSCFV-2221 : standardize corrections

This commit is contained in:
vChabot
2012-05-11 08:11:08 +00:00
parent 31bc355310
commit cd600f3eab
2 changed files with 4 additions and 3 deletions
-2
View File
@@ -89,8 +89,6 @@ 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)));
if ($this->orderBy == 'price')
$this->orderBy = 'product_shop.price';
$search = Search::find($this->context->language->id, $query, $this->p, $this->n, $this->orderBy, $this->orderWay);
Hook::exec('actionSearch', array('expr' => $query, 'total' => $search['total']));
$nbProducts = $search['total'];