Skip to content

Commit

Permalink
Add option advanced forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco A. Nina committed Oct 31, 2024
1 parent 5e0c4e8 commit 13430d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ProcessMaker/Http/Resources/V1_1/TaskScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function includeScreen($request)
$array['screen'] = null;
}

if ($array['screen']) {
if (is_array($array['screen']) && $array['screen']) {
// Apply translations to screen
$screenTranslation = new ScreenTranslation();
$array['screen']['config'] = $screenTranslation->applyTranslations($array['screen']);
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Traits/TaskResourceIncludes.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function includeScreen($request)
$array['screen'] = null;
}

if ($array['screen']) {
if (is_array($array['screen']) && $array['screen']) {
// Apply translations to screen
$screenTranslation = new ScreenTranslation();
$array['screen']['config'] = $screenTranslation->applyTranslations($array['screen']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export default {
icon = "fas fa-comment";
description = this.$t("Design functional rule-based modern chat style experiences.");
break;
case "ADVANCED":
type = "ADVANCED";
typeHuman = "Advanced";
icon = "fa fa-book";
description = this.$t("Design Advanced interactive and complex multi-page forms.");
break;
default:
type = "FORM";
typeHuman = this.$t("Form");
Expand Down

0 comments on commit 13430d8

Please sign in to comment.