Fixed a bug where certain reports would not show incomes from shared accounts.

This commit is contained in:
James Cole
2015-01-18 09:49:53 +01:00
parent 1068dcb8a4
commit 03e0510c4f
3 changed files with 36 additions and 29 deletions

View File

@@ -254,10 +254,11 @@ class TransactionController extends BaseController
Session::flash('errors', $messages['errors']);
if ($messages['errors']->count() > 0) {
Session::flash('error', 'Could not store transaction: ' . $messages['errors']->first());
return Redirect::route('transactions.create', $data['what'])->withInput();
}
// return to create screen:
if ($data['post_submit_action'] == 'validate_only' || $messages['errors']->count() > 0) {
if ($data['post_submit_action'] == 'validate_only') {
return Redirect::route('transactions.create', $data['what'])->withInput();
}