Should fix issue #263

This commit is contained in:
James Cole 2016-05-17 12:45:31 +02:00
parent 042b7a4966
commit e113736887

View File

@ -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;