Skip to content

Commit

Permalink
[-] FO: Fix #PSCFV-5111
Browse files Browse the repository at this point in the history
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17914 b9a71923-0436-4b27-9f14-aed3839534dd
  • Loading branch information
rGaillard committed Oct 22, 2012
1 parent adcfaaa commit 0284e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/Product.php
Expand Up @@ -930,7 +930,7 @@ public static function getProducts($id_lang, $start, $limit, $order_by, $order_w

if (!Validate::isOrderBy($order_by) || !Validate::isOrderWay($order_way))
die (Tools::displayError());
if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add')
if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add' || $order_by == 'date_upd')
$order_by_prefix = 'p';
else if ($order_by == 'name')
$order_by_prefix = 'pl';
Expand Down Expand Up @@ -1853,7 +1853,7 @@ public static function getNewProducts($id_lang, $page_number = 0, $nb_products =
if ($nb_products < 1) $nb_products = 10;
if (empty($order_by) || $order_by == 'position') $order_by = 'date_add';
if (empty($order_way)) $order_way = 'DESC';
if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add')
if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add' || $order_by == 'date_upd')
$order_by_prefix = 'p';
else if ($order_by == 'name')
$order_by_prefix = 'pl';
Expand Down Expand Up @@ -2096,7 +2096,7 @@ public static function getPricesDrop($id_lang, $page_number = 0, $nb_products =
if ($nb_products < 1) $nb_products = 10;
if (empty($order_by) || $order_by == 'position') $order_by = 'price';
if (empty($order_way)) $order_way = 'DESC';
if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add')
if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add' || $order_by == 'date_upd')
$order_by_prefix = 'p';
else if ($order_by == 'name')
$order_by_prefix = 'pl';
Expand Down

0 comments on commit 0284e50

Please sign in to comment.