mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 03:56:42 +00:00
Cleanup.
This commit is contained in:
@@ -22,7 +22,7 @@ class TransactionController extends BaseController
|
|||||||
* Construct a new transaction controller with two of the most often used helpers.
|
* Construct a new transaction controller with two of the most often used helpers.
|
||||||
*
|
*
|
||||||
* @param TJRI $repository
|
* @param TJRI $repository
|
||||||
* @param TI $helper
|
* @param TI $helper
|
||||||
*/
|
*/
|
||||||
public function __construct(TJRI $repository, TI $helper)
|
public function __construct(TJRI $repository, TI $helper)
|
||||||
{
|
{
|
||||||
@@ -178,9 +178,9 @@ class TransactionController extends BaseController
|
|||||||
* Data to properly display the edit form.
|
* Data to properly display the edit form.
|
||||||
*/
|
*/
|
||||||
$prefilled = [
|
$prefilled = [
|
||||||
'date' => $journal->date->format('Y-m-d'),
|
'date' => $journal->date->format('Y-m-d'),
|
||||||
'category' => '',
|
'category' => '',
|
||||||
'budget_id' => 0,
|
'budget_id' => 0,
|
||||||
'piggybank_id' => $piggyBankId
|
'piggybank_id' => $piggyBankId
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -280,10 +280,7 @@ class TransactionController extends BaseController
|
|||||||
/*
|
/*
|
||||||
* Try to store:
|
* Try to store:
|
||||||
*/
|
*/
|
||||||
$data['return_journal'] = true;
|
$messageBag = $this->_helper->store($data);
|
||||||
$set = $this->_helper->store($data);
|
|
||||||
$journal = $set['journal'];
|
|
||||||
$messageBag = $set['messagebag'];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Failure!
|
* Failure!
|
||||||
@@ -298,13 +295,6 @@ class TransactionController extends BaseController
|
|||||||
*/
|
*/
|
||||||
Session::flash('success', 'Transaction "' . e(Input::get('description')) . '" saved!');
|
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.
|
* Redirect to original location or back to the form.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user