Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Extra debug info for #2159 and some kernel changes.
James Colef6f21e02ac33
diff --git a/app/Http/Controllers/Transaction/SingleController.php b/app/Http/Controllers/Transaction/SingleController.phpindex ddd474c7ab..bbf82c8737 100644--- a/app/Http/Controllers/Transaction/SingleController.php+++ b/app/Http/Controllers/Transaction/SingleController.php@@ -221,6 +221,7 @@ class SingleController extends Controller*/public function delete(TransactionJournal $journal){+ Log::debug(sprintf('Start of delete view for journal #%d', $journal->id));// Covered by another controller's tests// @codeCoverageIgnoreStartif ($this->isOpeningBalance($journal)) {@@ -232,6 +233,7 @@ class SingleController extends Controller$subTitle = (string)trans('firefly.delete_' . $what, ['description' => $journal->description]);// put previous url in session+ Log::debug('Will try to remember previous URI');$this->rememberPreviousUri('transactions.delete.uri');return view('transactions.single.delete', compact('journal', 'subTitle', 'what'));diff --git a/app/Http/Kernel.php b/app/Http/Kernel.phpindex 0544006f2c..c352b2fb55 100644--- a/app/Http/Kernel.php+++ b/app/Http/Kernel.php@@ -184,7 +184,21 @@ class Kernel extends HttpKernel'bindings',],];-+ /**+ * The priority-sorted list of middleware.+ *+ * This forces non-global middleware to always be in the given order.+ *+ * @var array+ */+ protected $middlewarePriority+ = [+ StartFireflySession::class,+ ShareErrorsFromSession::class,+ Authenticate::class,+ Binder::class,+ Authorize::class,+ ];/*** The application's route middleware.*diff --git a/app/Support/Http/Controllers/UserNavigation.php b/app/Support/Http/Controllers/UserNavigation.phpindex b1ee2cd0e3..b044752b14 100644--- a/app/Support/Http/Controllers/UserNavigation.php+++ b/app/Support/Http/Controllers/UserNavigation.php@@ -50,6 +50,7 @@ trait UserNavigation*/protected function getPreviousUri(string $identifier): string{+ Log::debug(sprintf('Trying to retrieve URL stored under "%s"', $identifier));// "forbidden" words for specific identifiers:// if these are in the previous URI, don't refer back there.$array = [