From dc7355697ca95b7c82813889773427de5d5afe54 Mon Sep 17 00:00:00 2001 From: bMancone Date: Fri, 11 May 2012 10:12:36 +0000 Subject: [PATCH] // Fixed #PSCFV-2252 --- 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)