// Fixed #PSCFV-2252

This commit is contained in:
bMancone
2012-05-11 10:12:36 +00:00
parent 00797a49ee
commit dc7355697c
@@ -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)