From f511a25c94366b54408811191cdfaed01d200e8a Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 13 Nov 2014 21:27:50 +0100 Subject: [PATCH] Added the input when creating new transactions. --- app/controllers/TransactionController.php | 2 +- app/lib/Firefly/Storage/Account/EloquentAccountRepository.php | 2 +- public/index.php | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controllers/TransactionController.php b/app/controllers/TransactionController.php index 25648fb1cf..aa0aa0a5b5 100644 --- a/app/controllers/TransactionController.php +++ b/app/controllers/TransactionController.php @@ -294,7 +294,7 @@ class TransactionController extends BaseController Session::flash('success', 'New transaction stored!'); if ($data['post_submit_action'] == 'create_another') { - return Redirect::route('transactions.create', $what); + return Redirect::route('transactions.create', $what)->withInput(); } else { return Redirect::route('transactions.index', $what); } diff --git a/app/lib/Firefly/Storage/Account/EloquentAccountRepository.php b/app/lib/Firefly/Storage/Account/EloquentAccountRepository.php index 1d234a5dd9..2bbf39cbfe 100644 --- a/app/lib/Firefly/Storage/Account/EloquentAccountRepository.php +++ b/app/lib/Firefly/Storage/Account/EloquentAccountRepository.php @@ -68,7 +68,7 @@ class EloquentAccountRepository implements AccountRepositoryInterface /** * - * TODO + * * Also delete: initial balance, initial balance account, and transactions */ diff --git a/public/index.php b/public/index.php index f08822d953..c4f34cbfec 100644 --- a/public/index.php +++ b/public/index.php @@ -20,6 +20,10 @@ require __DIR__.'/../bootstrap/autoload.php'; +/* + * TODO: add "Create new X" button to any list there is: categories, accounts, piggies, etc. + */ + /* |-------------------------------------------------------------------------- | Turn On The Lights