From a1e2dac658058b7d377e5ff997834cae586498a0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 4 Oct 2018 20:55:04 +0200 Subject: [PATCH] Another fix for #1583 --- app/Factory/TransactionFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index ab66656da7..611ca37a93 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -120,8 +120,8 @@ class TransactionFactory Log::debug(sprintf('Expect source destination to be of type "%s"', $destinationType)); // find source and destination account: - $sourceAccount = $this->findAccount($sourceType, $data['source_id'], $data['source_name']); - $destinationAccount = $this->findAccount($destinationType, $data['destination_id'], $data['destination_name']); + $sourceAccount = $this->findAccount($sourceType, (int)$data['source_id'], $data['source_name']); + $destinationAccount = $this->findAccount($destinationType, (int)$data['destination_id'], $data['destination_name']); if (null === $sourceAccount || null === $destinationAccount) { $debugData = $data;