// Fixed #PSCFV-2252
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user