From 2c6643d6911ed901a374fa480683a9f01e7cbd0d Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 18 Apr 2016 14:15:10 +0200 Subject: [PATCH] Fix #243 --- app/Helpers/Csv/Converter/AssetAccountIban.php | 2 +- app/Helpers/Csv/Converter/AssetAccountName.php | 2 +- app/Helpers/Csv/Converter/AssetAccountNumber.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Helpers/Csv/Converter/AssetAccountIban.php b/app/Helpers/Csv/Converter/AssetAccountIban.php index 19e0a8aec0..ac24b3a4a2 100644 --- a/app/Helpers/Csv/Converter/AssetAccountIban.php +++ b/app/Helpers/Csv/Converter/AssetAccountIban.php @@ -26,7 +26,7 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface // is mapped? Then it's easy! if (isset($this->mapped[$this->index][$this->value])) { - $account = $repository->find($this->mapped[$this->index][$this->value]); + $account = $repository->find(intval($this->mapped[$this->index][$this->value])); Log::debug('Found mapped account for value "' . $this->value . '". It is account #' . $account->id); return $account; diff --git a/app/Helpers/Csv/Converter/AssetAccountName.php b/app/Helpers/Csv/Converter/AssetAccountName.php index 72f4653605..69271e1b22 100644 --- a/app/Helpers/Csv/Converter/AssetAccountName.php +++ b/app/Helpers/Csv/Converter/AssetAccountName.php @@ -25,7 +25,7 @@ class AssetAccountName extends BasicConverter implements ConverterInterface // is mapped? Then it's easy! if (isset($this->mapped[$this->index][$this->value])) { - $account = $repository->find($this->mapped[$this->index][$this->value]); + $account = $repository->find(intval($this->mapped[$this->index][$this->value])); return $account; } diff --git a/app/Helpers/Csv/Converter/AssetAccountNumber.php b/app/Helpers/Csv/Converter/AssetAccountNumber.php index b61e35fb70..ece314361c 100644 --- a/app/Helpers/Csv/Converter/AssetAccountNumber.php +++ b/app/Helpers/Csv/Converter/AssetAccountNumber.php @@ -34,7 +34,7 @@ class AssetAccountNumber extends BasicConverter implements ConverterInterface // is mapped? Then it's easy! if (isset($this->mapped[$this->index][$this->value])) { - $account = $repository->find($this->mapped[$this->index][$this->value]); + $account = $repository->find(intval($this->mapped[$this->index][$this->value])); return $account; }