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)) { 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.]+$/'], ]; }