From a90c5ce9623749a479053e4a1bf8a7d2fca08dee Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Oct 2015 21:48:17 +0200 Subject: [PATCH] Revert "Add currently used sortfields and sortorder" This reverts commit 0663932589af7b122cab273eca83e85e9d17577f. --- htdocs/fourn/ajax/getSupplierPrices.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/fourn/ajax/getSupplierPrices.php b/htdocs/fourn/ajax/getSupplierPrices.php index 4bdfb6ca238..0255764a5d9 100644 --- a/htdocs/fourn/ajax/getSupplierPrices.php +++ b/htdocs/fourn/ajax/getSupplierPrices.php @@ -49,9 +49,7 @@ if ($idprod > 0) { $producttmp=new ProductFournisseur($db); $producttmp->fetch($idprod); - // get supplier prices sorted descending on supplier name and supplier ref - // TODO create configuration to define best price, current is not optimal - $productSupplierArray = $producttmp->list_product_fournisseur_price($idprod, 's.nom, pfp.ref_fourn', 'DESC'); + $productSupplierArray = $producttmp->list_product_fournisseur_price($idprod); if ( is_array($productSupplierArray)) { foreach ($productSupplierArray as $productSupplier)