[-] BO : refresh currency rates button fixed
This commit is contained in:
@@ -388,10 +388,10 @@ class CurrencyCore extends ObjectModel
|
|||||||
if (!$default_currency = Currency::getDefaultCurrency())
|
if (!$default_currency = Currency::getDefaultCurrency())
|
||||||
return Tools::displayError('No default currency');
|
return Tools::displayError('No default currency');
|
||||||
|
|
||||||
$currencies = Currency::getCurrencies(true);
|
$currencies = Currency::getCurrencies(true, false);
|
||||||
foreach ($currencies as $currency)
|
foreach ($currencies as $currency)
|
||||||
$currency->refreshCurrency($feed->list, $isoCodeSource, $default_currency);
|
if ($currency->id != $default_currency->id)
|
||||||
|
$currency->refreshCurrency($feed->list, $isoCodeSource, $default_currency);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ class AdminCurrenciesControllerCore extends AdminController
|
|||||||
*/
|
*/
|
||||||
public function initProcess()
|
public function initProcess()
|
||||||
{
|
{
|
||||||
if (Tools::isSubmit('submitExchangesRates'))
|
if (Tools::isSubmit('SubmitExchangesRates'))
|
||||||
{
|
{
|
||||||
if ($this->tabAccess['edit'] === '1')
|
if ($this->tabAccess['edit'] === '1')
|
||||||
$this->action = 'exchangeRates';
|
$this->action = 'exchangeRates';
|
||||||
|
|||||||
Reference in New Issue
Block a user