mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	Extra debug info for #2159 and some kernel changes.
This commit is contained in:
		| @@ -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 | ||||
|         // @codeCoverageIgnoreStart | ||||
|         if ($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')); | ||||
|   | ||||
| @@ -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. | ||||
|      * | ||||
|   | ||||
| @@ -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     = [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user