From 4fe2611cccd68dce86550b071d78acf69c02027c Mon Sep 17 00:00:00 2001 From: Darshan Date: Sat, 11 Jan 2025 11:07:10 +0530 Subject: [PATCH 1/2] add: missing scope to template to prevent a crash on console. --- app/config/function-templates.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config/function-templates.php b/app/config/function-templates.php index fec9d2227f..4bd8b83f4d 100644 --- a/app/config/function-templates.php +++ b/app/config/function-templates.php @@ -1567,7 +1567,8 @@ return [ 'required' => false, 'type' => 'number' ] - ] + ], + 'scopes' => [] ], [ 'icon' => 'icon-chip', From 3fa78e3c3ba23a3d8b9eafefd4507bf7ca4c59fa Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 14 Jan 2025 14:50:40 +1300 Subject: [PATCH 2/2] Log path with populated parameters --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index db9df71341..6f8566f69b 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -894,7 +894,7 @@ App::error() $log->addTag('database', $dsn->getHost()); $log->addTag('method', $route->getMethod()); - $log->addTag('url', $route->getPath()); + $log->addTag('url', $request->getURI()); $log->addTag('verboseType', get_class($error)); $log->addTag('code', $error->getCode()); $log->addTag('projectId', $project->getId());