multicurrency:fix display error message on failed update
This commit is contained in:
parent
f2171d466b
commit
d98ce172ad
@ -91,7 +91,11 @@ elseif ($action == 'update_currency')
|
|||||||
{
|
{
|
||||||
if ($currency->fetch($fk_multicurrency) > 0)
|
if ($currency->fetch($fk_multicurrency) > 0)
|
||||||
{
|
{
|
||||||
$currency->updateRate($rate);
|
$result=$currency->updateRate($rate);
|
||||||
|
if ($result<0) {
|
||||||
|
setEventMessages(null,$currency->errors,'errors');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -417,6 +417,7 @@ class MultiCurrency extends CommonObject
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->rate = null;
|
$this->rate = null;
|
||||||
|
$this->errors=$currencyRate->errors;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user