A temporary fix for the problem that storing a transaction journal doesn't return the actual journal when successful.

This commit is contained in:
Sander Dorigo
2014-10-07 12:26:02 +02:00
parent d5bcf5497f
commit 1fbdb3d0ae
3 changed files with 16 additions and 4 deletions

View File

@@ -106,7 +106,8 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
'what' => 'transfer',
'return_journal' => true
];
$journal = $transactions->store($set);
$returnSet = $transactions->store($set);
$journal = $returnSet['journal'];
/*
* Validate the store action:
@@ -333,7 +334,8 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
/*
* Import it:
*/
$journal = $transactions->store($set);
$returnSet = $transactions->store($set);
$journal = $returnSet['journal'];
/*
* Validate the store action: