From cdf2696ff9e2dc6daddc535aee886e538ecd09eb Mon Sep 17 00:00:00 2001 From: Fabio Date: Wed, 29 Apr 2026 10:40:42 -0400 Subject: [PATCH 1/3] FOUR-27838:Add the case number to all screens in the applicant process --- ProcessMaker/Http/Controllers/TaskController.php | 2 ++ config/app.php | 9 ++++++--- resources/js/tasks/edit.js | 1 + resources/views/tasks/edit.blade.php | 5 +++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ProcessMaker/Http/Controllers/TaskController.php b/ProcessMaker/Http/Controllers/TaskController.php index 07d8d597a2..213d9374ab 100755 --- a/ProcessMaker/Http/Controllers/TaskController.php +++ b/ProcessMaker/Http/Controllers/TaskController.php @@ -225,6 +225,8 @@ public function edit(ProcessRequestToken $task, string $preview = '') 'userConfiguration' => $userConfiguration, 'hitlEnabled' => $hitlEnabled, 'iframeSrc' => $iframeSrc, + 'caseNumber' => $task->processRequest->case_number, + 'tceEnableCaseNumberScreen' => config('app.tce_enable_case_number_screen'), ]); } } diff --git a/config/app.php b/config/app.php index e9662bec3b..57886fd39a 100644 --- a/config/app.php +++ b/config/app.php @@ -21,7 +21,7 @@ 'env' => env('APP_ENV', 'local'), // Should we place our application in debug mode - 'debug' => env('APP_DEBUG', false), + 'debug' => env('APP_DEBUG', true), // What's our default cache lifecycle 'cache_lifetime' => env('APP_CACHE_LIFETIME', 60), @@ -77,7 +77,7 @@ 'processmaker_scripts_timeout' => env('PROCESSMAKER_SCRIPTS_TIMEOUT', 'timeout'), // System-level scripts timeout - 'processmaker_system_scripts_timeout_seconds' => env('PROCESSMAKER_SYSTEM_SCRIPTS_TIMEOUT_SECONDS', 300), + 'processmaker_system_scripts_timeout_seconds' => env('PROCESSMAKER_SYSTEM_SCRIPTS_TIMEOUT_SECONDS', 3000), // Since the task scheduler has a preset of one minute (crontab), the times // must be rounded or truncated to the nearest HH:MM:00 before compare @@ -157,7 +157,7 @@ 'favicon_path' => env('FAVICON_PATH', '/img/favicon.svg'), // Maximum file size for images to be set as default (in bytes) (5MB) - 'img_max_filesize_limit' => env('IMG_MAX_FILESIZE_LIMIT', '5M'), + 'img_max_filesize_limit' => env('IMG_MAX_FILESIZE_LIMIT', '50M'), // Maximum file size for documents to be set as default (in bytes) (10MB) 'doc_max_filesize_limit' => env('DOC_MAX_FILESIZE_LIMIT', '10M'), @@ -288,6 +288,9 @@ // Enable or disable TCE customization feature 'tce_customization_enable' => env('TCE_CUSTOMIZATION_ENABLED', false), + // Enable or disable to show case number in screens feature + 'tce_enable_case_number_screen' => env('TCE_ENABLE_CASE_NUMBER_SCREEN', false), + 'prometheus_namespace' => env('PROMETHEUS_NAMESPACE', strtolower(preg_replace('/[^a-zA-Z0-9_]+/', '_', env('APP_NAME', 'processmaker')))), 'server_timing' => [ diff --git a/resources/js/tasks/edit.js b/resources/js/tasks/edit.js index fb85e7b8ef..d58fa5281b 100644 --- a/resources/js/tasks/edit.js +++ b/resources/js/tasks/edit.js @@ -22,6 +22,7 @@ const main = new Vue({ }, mixins: addons, data: { + tceEnableCaseNumberScreen: window.ProcessMaker.tceEnableCaseNumberScreen, // Edit data fieldsToUpdate: [], jsonData: "", diff --git a/resources/views/tasks/edit.blade.php b/resources/views/tasks/edit.blade.php index 9bc92cabfe..165d107950 100644 --- a/resources/views/tasks/edit.blade.php +++ b/resources/views/tasks/edit.blade.php @@ -88,6 +88,9 @@ class="nav-link">
@can('update', $task) @unless($hitlEnabled) +
+ Case ID: {{ $caseNumber }} +
const userHasAccessToTask = {{ Auth::user()->can('update', $task) ? "true": "false" }}; const userIsAdmin = {{ Auth::user()->is_administrator ? "true": "false" }}; const userIsProcessManager = {{ in_array(Auth::user()->id, $task->process?->manager_id ?? []) ? "true": "false" }}; + const caseNumber = @json($caseNumber); + window.ProcessMaker.tceEnableCaseNumberScreen = @json($tceEnableCaseNumberScreen); const userConfiguration = @json($userConfiguration); let screenFields = @json($screenFields); window.Processmaker.user = @json($currentUser); From 0f1e3701493712fdc5ff97b9cc74ff9336125e98 Mon Sep 17 00:00:00 2001 From: Fabio Date: Wed, 29 Apr 2026 10:50:51 -0400 Subject: [PATCH 2/3] reset app.php --- config/app.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/app.php b/config/app.php index 57886fd39a..e4f792895e 100644 --- a/config/app.php +++ b/config/app.php @@ -21,7 +21,7 @@ 'env' => env('APP_ENV', 'local'), // Should we place our application in debug mode - 'debug' => env('APP_DEBUG', true), + 'debug' => env('APP_DEBUG', false), // What's our default cache lifecycle 'cache_lifetime' => env('APP_CACHE_LIFETIME', 60), @@ -77,7 +77,7 @@ 'processmaker_scripts_timeout' => env('PROCESSMAKER_SCRIPTS_TIMEOUT', 'timeout'), // System-level scripts timeout - 'processmaker_system_scripts_timeout_seconds' => env('PROCESSMAKER_SYSTEM_SCRIPTS_TIMEOUT_SECONDS', 3000), + 'processmaker_system_scripts_timeout_seconds' => env('PROCESSMAKER_SYSTEM_SCRIPTS_TIMEOUT_SECONDS', 300), // Since the task scheduler has a preset of one minute (crontab), the times // must be rounded or truncated to the nearest HH:MM:00 before compare @@ -157,7 +157,7 @@ 'favicon_path' => env('FAVICON_PATH', '/img/favicon.svg'), // Maximum file size for images to be set as default (in bytes) (5MB) - 'img_max_filesize_limit' => env('IMG_MAX_FILESIZE_LIMIT', '50M'), + 'img_max_filesize_limit' => env('IMG_MAX_FILESIZE_LIMIT', '5M'), // Maximum file size for documents to be set as default (in bytes) (10MB) 'doc_max_filesize_limit' => env('DOC_MAX_FILESIZE_LIMIT', '10M'), From 574a8d6dc89a2e569740438facc4a8b915828ef4 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 30 Apr 2026 14:27:43 -0400 Subject: [PATCH 3/3] change label --- resources/views/tasks/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/tasks/edit.blade.php b/resources/views/tasks/edit.blade.php index 165d107950..228df80737 100644 --- a/resources/views/tasks/edit.blade.php +++ b/resources/views/tasks/edit.blade.php @@ -89,7 +89,7 @@ class="nav-link"> @can('update', $task) @unless($hitlEnabled)
- Case ID: {{ $caseNumber }} + Case #: {{ $caseNumber }}