From 7f640e51dd054f7e7ea08368324b6ce1c9e677ef Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Thu, 9 Feb 2023 07:44:53 -0500 Subject: [PATCH] Fix "Using $this when not in object context" error in StringUtilities.php (NOJIRA) (#67) --- 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]); }