From 8edb26ba8135cae8b9b3beede09d33e86177b8a0 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Tue, 7 Feb 2023 14:00:00 -0500 Subject: [PATCH] Fix "Using $this when not in object context" error in StringUtilities.php (NOJIRA) --- app/src/Lib/Util/StringUtilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Lib/Util/StringUtilities.php b/app/src/Lib/Util/StringUtilities.php index 51a8e9c96..c7056b827 100644 --- a/app/src/Lib/Util/StringUtilities.php +++ b/app/src/Lib/Util/StringUtilities.php @@ -46,7 +46,7 @@ class StringUtilities { public static function columnKey($modelsName, $c, $tz=null, $useCustomClMdlLabel=false): string { if(strpos($c, "_id", strlen($c)-3)) { // Key is of the form field_id, use .ct label instead - $k = $this->foreignKeyToClassName($c); + $k = self::foreignKeyToClassName($c); return __d('controller', $k, [1]); }