mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Another fix for #1583
This commit is contained in:
@@ -120,8 +120,8 @@ class TransactionFactory
|
|||||||
Log::debug(sprintf('Expect source destination to be of type "%s"', $destinationType));
|
Log::debug(sprintf('Expect source destination to be of type "%s"', $destinationType));
|
||||||
|
|
||||||
// find source and destination account:
|
// find source and destination account:
|
||||||
$sourceAccount = $this->findAccount($sourceType, $data['source_id'], $data['source_name']);
|
$sourceAccount = $this->findAccount($sourceType, (int)$data['source_id'], $data['source_name']);
|
||||||
$destinationAccount = $this->findAccount($destinationType, $data['destination_id'], $data['destination_name']);
|
$destinationAccount = $this->findAccount($destinationType, (int)$data['destination_id'], $data['destination_name']);
|
||||||
|
|
||||||
if (null === $sourceAccount || null === $destinationAccount) {
|
if (null === $sourceAccount || null === $destinationAccount) {
|
||||||
$debugData = $data;
|
$debugData = $data;
|
||||||
|
Reference in New Issue
Block a user