// Fixed #PSCFV-2252

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15216 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-05-11 10:12:36 +00:00
parent 33cb7fc589
commit c04c4be710
@@ -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)