mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 17:57:09 +00:00
Fix route [skip ci]
This commit is contained in:
@@ -274,7 +274,7 @@ class SingleController extends Controller
|
||||
|
||||
if ($doSplit === true) {
|
||||
// redirect to edit screen:
|
||||
return redirect(route('transactions.edit', [$journal->id]));
|
||||
return redirect(route('transactions.edit-split', [$journal->id]));
|
||||
}
|
||||
|
||||
|
||||
@@ -311,6 +311,9 @@ class SingleController extends Controller
|
||||
Session::flash('success', strval(trans('firefly.updated_' . $type, ['description' => e($data['description'])])));
|
||||
Preferences::mark();
|
||||
|
||||
// if wishes to split:
|
||||
|
||||
|
||||
if (intval($request->get('return_to_edit')) === 1) {
|
||||
// set value so edit routine will not overwrite URL:
|
||||
Session::put('transactions.edit.fromUpdate', true);
|
||||
|
Reference in New Issue
Block a user