From c04c4be71089f1a4045212ee53c42ca64a9e1db2 Mon Sep 17 00:00:00 2001 From: bMancone Date: Fri, 11 May 2012 10:12:36 +0000 Subject: [PATCH] // Fixed #PSCFV-2252 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15216 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminStockManagementController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminStockManagementController.php b/controllers/admin/AdminStockManagementController.php index ce3993e10..ffb342f85 100644 --- a/controllers/admin/AdminStockManagementController.php +++ b/controllers/admin/AdminStockManagementController.php @@ -134,8 +134,12 @@ class AdminStockManagementControllerCore extends AdminController if (!$warehouses_add) $this->displayWarning($this->l('You have to have Warehouses before adding stock. See Stock/Warehouses')); - // gets the currencies - $currencies = Currency::getCurrencies(); + //get currencies list + $currencies = Currency::getCurrencies(); + $id_default_currency = Configuration::get('PS_CURRENCY_DEFAULT'); + $default_currency = Currency::getCurrency($id_default_currency); + if ($default_currency) + $currencies = array_merge(array($default_currency, '-'), $currencies); // switch, in order to display the form corresponding to the current action switch ($this->display)