diff --git a/htdocs/admin/multicurrency.php b/htdocs/admin/multicurrency.php index 31da8a68d2e..8fd6bb22c4d 100644 --- a/htdocs/admin/multicurrency.php +++ b/htdocs/admin/multicurrency.php @@ -91,7 +91,11 @@ elseif ($action == 'update_currency') { if ($currency->fetch($fk_multicurrency) > 0) { - $currency->updateRate($rate); + $result=$currency->updateRate($rate); + if ($result<0) { + setEventMessages(null,$currency->errors,'errors'); + } + } } } diff --git a/htdocs/multicurrency/class/multicurrency.class.php b/htdocs/multicurrency/class/multicurrency.class.php index a694b5396d7..6d0e948c4fb 100644 --- a/htdocs/multicurrency/class/multicurrency.class.php +++ b/htdocs/multicurrency/class/multicurrency.class.php @@ -417,6 +417,7 @@ class MultiCurrency extends CommonObject else { $this->rate = null; + $this->errors=$currencyRate->errors; return -1; } }