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

@@ -469,7 +469,7 @@ class Transaction implements TransactionInterface
$journal->completed = true;
$journal->save();
if (isset($data['return_journal']) && $data['return_journal'] == true) {
return $journal;
return ['journal' => $journal, 'messagebag' => $journal->errors()];
}
return $journal->errors();
}