// 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:
@@ -134,8 +134,12 @@ class AdminStockManagementControllerCore extends AdminController
|
|||||||
if (!$warehouses_add)
|
if (!$warehouses_add)
|
||||||
$this->displayWarning($this->l('You have to have Warehouses before adding stock. See Stock/Warehouses'));
|
$this->displayWarning($this->l('You have to have Warehouses before adding stock. See Stock/Warehouses'));
|
||||||
|
|
||||||
// gets the currencies
|
//get currencies list
|
||||||
$currencies = Currency::getCurrencies();
|
$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, in order to display the form corresponding to the current action
|
||||||
switch ($this->display)
|
switch ($this->display)
|
||||||
|
|||||||
Reference in New Issue
Block a user