Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOUR-21290: Fix Unable to Create Processes from Guided Templates #7839

Open
wants to merge 2 commits into
base: release-2024-fall
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ProcessMaker/Http/Controllers/Api/TemplateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Models/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.]+$/'],
];
}
Expand Down
Loading