Can have link in success message to the transaction it refers to

This commit is contained in:
David Meiseles
2018-08-20 11:36:13 -04:00
parent 433da921bb
commit d30da7bf5d
2 changed files with 11 additions and 1 deletions

View File

@@ -369,7 +369,7 @@ class SingleController extends Controller
event(new StoredTransactionJournal($journal, $data['piggy_bank_id']));
session()->flash('success', (string)trans('firefly.stored_journal', ['description' => $journal->description]));
session()->flash('success_uri', (string)trans('firefly.stored_journal', ['description' => "<a href='/transactions/show/{$journal->id}'>{$journal->description}</a>"]));
app('preferences')->mark();
// @codeCoverageIgnoreStart