mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Should fix issue #263
This commit is contained in:
parent
042b7a4966
commit
e113736887
@ -22,12 +22,12 @@ class CurrencyCode extends BasicConverter implements ConverterInterface
|
|||||||
$repository = app(CurrencyRepositoryInterface::class);
|
$repository = app(CurrencyRepositoryInterface::class);
|
||||||
|
|
||||||
if (isset($this->mapped[$this->index][$this->value])) {
|
if (isset($this->mapped[$this->index][$this->value])) {
|
||||||
$currency = $repository->find($this->mapped[$this->index][$this->value]);
|
$currency = $repository->find(intval($this->mapped[$this->index][$this->value]));
|
||||||
|
|
||||||
return $currency;
|
return $currency;
|
||||||
}
|
}
|
||||||
|
|
||||||
$currency = $repository->findByCode($this->value);
|
$currency = $repository->findByCode(intval($this->value));
|
||||||
|
|
||||||
|
|
||||||
return $currency;
|
return $currency;
|
||||||
|
Loading…
Reference in New Issue
Block a user