Skip to content

Firefly III: a personal finances manager

Cleanup.

Sander Dorigob3eef4f40b85
diff --git a/app/controllers/TransactionController.php b/app/controllers/TransactionController.php
index 798ca809ae..e3ed758ed3 100644
--- a/app/controllers/TransactionController.php
+++ b/app/controllers/TransactionController.php
@@ -22,7 +22,7 @@ class TransactionController extends BaseController
* Construct a new transaction controller with two of the most often used helpers.
*
* @param TJRI $repository
- * @param TI $helper
+ * @param TI $helper
*/
public function __construct(TJRI $repository, TI $helper)
{
@@ -178,9 +178,9 @@ class TransactionController extends BaseController
* Data to properly display the edit form.
*/
$prefilled = [
- 'date' => $journal->date->format('Y-m-d'),
- 'category' => '',
- 'budget_id' => 0,
+ 'date' => $journal->date->format('Y-m-d'),
+ 'category' => '',
+ 'budget_id' => 0,
'piggybank_id' => $piggyBankId
];
@@ -280,10 +280,7 @@ class TransactionController extends BaseController
/*
* Try to store:
*/
- $data['return_journal'] = true;
- $set = $this->_helper->store($data);
- $journal = $set['journal'];
- $messageBag = $set['messagebag'];
+ $messageBag = $this->_helper->store($data);
/*
* Failure!
@@ -298,13 +295,6 @@ class TransactionController extends BaseController
*/
Session::flash('success', 'Transaction "' . e(Input::get('description')) . '" saved!');
- /*
- * Trigger something that will search for possibly matching recurring transactions.
- * This only works for expenses. However, at this point we have no idea what the latest
- * transaction is. We'll have to find it, and when the user creates a lot of them it might
- * get lost somewhere.
- */
-
/*
* Redirect to original location or back to the form.
*/