From 6c857e9e77103fee6e42a945c00891402c7b9aca Mon Sep 17 00:00:00 2001 From: Fernando Ontiveros Date: Wed, 13 Aug 2025 22:47:29 -0400 Subject: [PATCH] fixing issue of Custom Case List not showed, and some translation issues --- config/view.php | 2 +- gulliver/system/class.bootstrap.php | 3 +- .../engine/src/ProcessMaker/Core/System.php | 45 ++++++++++--------- workflow/engine/xmlform/login/login.html | 1 - .../engine/xmlform/login/sysLoginNoWSpm3.html | 1 - 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/config/view.php b/config/view.php index 928216b5b..e0b5df66a 100644 --- a/config/view.php +++ b/config/view.php @@ -23,5 +23,5 @@ return [ | directory. However, as usual, you are free to change this value. | */ - 'compiled' => realpath(dirname(__DIR__) . '/' . 'bootstrap/cache/views') + 'compiled' => base_path("shared") ]; \ No newline at end of file diff --git a/gulliver/system/class.bootstrap.php b/gulliver/system/class.bootstrap.php index c07ffdac8..7a7742f30 100644 --- a/gulliver/system/class.bootstrap.php +++ b/gulliver/system/class.bootstrap.php @@ -534,6 +534,7 @@ class Bootstrap // if the default translations table doesn't exist we can't proceed if (!is_file(PATH_LANGUAGECONT . 'translation.en')) { + error_log("The default translations table doesn't exist we can't get the translation " . PATH_LANGUAGECONT ); return null; } global $translation; @@ -874,7 +875,7 @@ class Bootstrap return 'var TRANSLATIONS_' . strtoupper($typeName) . ' = ' . Bootstrap::json_encode($translationToEncode) . ';'; } else { error_log("Missing or invalid translation array for type: " . $typeName); - return ''; + return ''; } } return ''; diff --git a/workflow/engine/src/ProcessMaker/Core/System.php b/workflow/engine/src/ProcessMaker/Core/System.php index 990beb3dd..6382fae3a 100644 --- a/workflow/engine/src/ProcessMaker/Core/System.php +++ b/workflow/engine/src/ProcessMaker/Core/System.php @@ -1234,7 +1234,7 @@ class System } /** - * Here if you validate if the type of data obtained from the configuration + * Here if you validate if the type of data obtained from the configuration * files are valid, otherwise the default value is used. */ $value = (string) $config['mobile_offline_tables_download_interval']; @@ -1578,7 +1578,7 @@ class System } /** - * Set Connection Configuration using "config" helper from "Laravel" with + * Set Connection Configuration using "config" helper from "Laravel" with * the constants defined in file "db.php" */ public static function setConnectionConfig( @@ -1613,7 +1613,7 @@ class System /** * Get current server protocol. - * + * * @return string */ public static function getServerProtocol() @@ -1624,7 +1624,7 @@ class System /** * Get current server host - * + * * @return string */ public static function getServerHostname() @@ -1641,7 +1641,7 @@ class System /** * Get current server port. - * + * * @return string */ public static function getServerPort() @@ -1655,7 +1655,7 @@ class System /** * Get current host (hostname + port). - * + * * @return string */ public static function getServerHost() @@ -1669,7 +1669,7 @@ class System /** * Get current server protocol and host. - * + * * @return string */ public static function getServerProtocolHost() @@ -1679,7 +1679,7 @@ class System /** * Get server main path (protocol + host + port + workspace + lang + skin). - * + * * @return string * @see ProcessMaker\BusinessModel\ProjectUser->projectWsUserCanStartTask() * @see ProcessMaker\BusinessModel\ProjectUser->userLogin() @@ -1691,8 +1691,8 @@ class System * @see workflow/engine/classes/ProcessMap.php ProcessMap->listNewWebEntry() * @see workflow/engine/classes/ProcessMap.php ProcessMap->webEntry() * @see workflow/engine/controllers/caseSchedulerProxy.php caseSchedulerProxy->checkCredentials() - * @see workflow/engine/methods/cases/cases_SchedulerValidateUser.php - * @see workflow/engine/methods/processes/processes_webEntryGenerate.php + * @see workflow/engine/methods/cases/cases_SchedulerValidateUser.php + * @see workflow/engine/methods/processes/processes_webEntryGenerate.php * @see workflow/engine/methods/processes/processes_webEntryValidate.php * @see workflow/engine/methods/processes/webEntry_Val_Assig.php */ @@ -1705,7 +1705,7 @@ class System /** * Get default domain mail. - * + * * @return string */ public static function getDefaultMailDomain() @@ -1737,20 +1737,21 @@ class System { //default values $result = [ - 'pathData' => getcwd() . '/shared', - 'pathCompiled' => getcwd() . '/shared/compiled', + 'pathData' => base_path('shared'), + 'pathCompiled' => base_path('shared/compiled'), ]; - $pathsInstalled = getcwd() . "/workflow/engine/config/paths_installed.php"; + $pathsInstalled = base_path("shared/config/paths_installed.php"); if (file_exists($pathsInstalled)) { - $script = "require_once '{$pathsInstalled}';" - . "return [" - . "'pathData' => PATH_DATA," - . "'pathCompiled' => PATH_C," - . "'hashInstallation' => HASH_INSTALLATION," - . "'systemHash' => SYSTEM_HASH," - . "];"; - $result = eval($script); + # $script = "require_once '{$pathsInstalled}';" + # . "return [" + # . "'pathData' => PATH_DATA," + # . "'pathCompiled' => PATH_C," + # . "'hashInstallation' => HASH_INSTALLATION," + # . "'systemHash' => SYSTEM_HASH," + # . "];"; + # $result = eval($script); + # print $result; } return (object) $result; } diff --git a/workflow/engine/xmlform/login/login.html b/workflow/engine/xmlform/login/login.html index df8f0d053..96b5142af 100644 --- a/workflow/engine/xmlform/login/login.html +++ b/workflow/engine/xmlform/login/login.html @@ -35,4 +35,3 @@ - diff --git a/workflow/engine/xmlform/login/sysLoginNoWSpm3.html b/workflow/engine/xmlform/login/sysLoginNoWSpm3.html index 01a2b2199..b215974f0 100644 --- a/workflow/engine/xmlform/login/sysLoginNoWSpm3.html +++ b/workflow/engine/xmlform/login/sysLoginNoWSpm3.html @@ -32,4 +32,3 @@ {$form.JS} -