From 03feed13a674b9419b7f40f3b5118124721da38e Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Sat, 7 Sep 2024 00:46:23 +0200 Subject: [PATCH] LDEV-3382 - check for old and new variable path --- core/src/main/java/resource/context/admin/debug/Classic.cfc | 4 +++- core/src/main/java/resource/context/admin/debug/Comment.cfc | 4 +++- core/src/main/java/resource/context/admin/debug/Simple.cfc | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/resource/context/admin/debug/Classic.cfc b/core/src/main/java/resource/context/admin/debug/Classic.cfc index d39dbf1633..020a0d8800 100644 --- a/core/src/main/java/resource/context/admin/debug/Classic.cfc +++ b/core/src/main/java/resource/context/admin/debug/Classic.cfc @@ -83,7 +83,9 @@ private function isColumnEmpty(query query, string columnName){ var time=getTickCount(); - var _cgi = arguments?.debugging?.scope?.cgi ?: cgi; + if(!isNull(arguments.debugging.scope.cgi)) local._cgi=arguments.debugging.scope.cgi; + else if(!isNull(arguments.debugging.cgi)) local._cgi=arguments.debugging.cgi; + else local._cgi=cgi; if(isNull(arguments.debugging.pages)) local.pages=queryNew('id,count,min,max,avg,app,load,query,total,src'); diff --git a/core/src/main/java/resource/context/admin/debug/Comment.cfc b/core/src/main/java/resource/context/admin/debug/Comment.cfc index 3ac05b567e..97b1972685 100644 --- a/core/src/main/java/resource/context/admin/debug/Comment.cfc +++ b/core/src/main/java/resource/context/admin/debug/Comment.cfc @@ -56,7 +56,9 @@ */ function output(struct custom, struct debugging, string context="web") { var NL=variables.NL; - var _cgi = arguments?.debugging?.scope?.cgi ?: cgi; + if(!isNull(arguments.debugging.scope.cgi)) local._cgi=arguments.debugging.scope.cgi; + else if(!isNull(arguments.debugging.cgi)) local._cgi=arguments.debugging.cgi; + else local._cgi=cgi; if (not StructKeyExists(arguments.custom, "unit")) arguments.custom["unit"] = "millisecond"; writeOutput("