Skip to content

Commit

Permalink
feat(ZMS-1808): fix displaying error
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Jan 18, 2024
1 parent 8533473 commit 6a130f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zmsadmin/src/Zmsadmin/WorkstationProcessRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function readResponse(
'scope' => $workstation->scope,
'scopes' => $department->getScopeList(),
'menuActive' => 'workstation',
'errors' => $request->getParam('errors')
'errors' => $request->getParam('errors') ?? null
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion zmsadmin/templates/block/appointment/formRedirect.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% set scopeOptionsGroup = scopeOptionsGroup|merge([{ 'name' : department.name, 'options' : scopeOptionsGroupOptions|msort('name') }]) %}

{{ formgroup(
{"label": "Weiterleiten zu Standort", "required": true, "errors": [errors.location]},
{"label": "Weiterleiten zu Standort", "required": true, "errors": errors.location ? [errors.location] : null},
[{
"type": "select",
"required": true,
Expand Down

0 comments on commit 6a130f8

Please sign in to comment.