From 38ccc71cd741c303d2ef766b8c8ed9fe0902fce7 Mon Sep 17 00:00:00 2001 From: Esteban Gallego Date: Tue, 17 Dec 2024 16:32:30 -0500 Subject: [PATCH 1/2] This will resolve the cause of FOUR-20102 --- ProcessMaker/Models/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProcessMaker/Models/Template.php b/ProcessMaker/Models/Template.php index 0e6e4cc050..96f9069ec1 100644 --- a/ProcessMaker/Models/Template.php +++ b/ProcessMaker/Models/Template.php @@ -138,7 +138,7 @@ public static function rules($existing = null, $table = null): array return [ 'name' => ['required', $unique, 'alpha_spaces', 'max:255'], - 'description' => ['required', 'string', 'max:100'], + 'description' => ['required', 'string'], 'version' => ['required', 'regex:/^[0-9.]+$/'], ]; } From 503c6373085d1969177dbb1f450c5a2ef8593968 Mon Sep 17 00:00:00 2001 From: Esteban Gallego Date: Tue, 17 Dec 2024 16:33:13 -0500 Subject: [PATCH 2/2] Restore Template::rules for Process Templates --- ProcessMaker/Http/Controllers/Api/TemplateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProcessMaker/Http/Controllers/Api/TemplateController.php b/ProcessMaker/Http/Controllers/Api/TemplateController.php index 4a24ab7118..824d045aa6 100644 --- a/ProcessMaker/Http/Controllers/Api/TemplateController.php +++ b/ProcessMaker/Http/Controllers/Api/TemplateController.php @@ -311,7 +311,7 @@ private function checkIfAssetsExist($request) protected function createProcess(Request $request) { - $request->validate(Process::rules($request->id)); + $request->validate(Template::rules($request->id, $this->types['process'][4])); $postOptions = $this->checkIfAssetsExist($request); if (!empty($postOptions)) {