Skip to content

Commit

Permalink
Merge pull request #103 from it-at-m/feature-zms-1808-appoinrment-red…
Browse files Browse the repository at this point in the history
…irect

feat(ZMS-1808): fix displaying error
  • Loading branch information
manjencic authored Jan 18, 2024
2 parents d5bc18d + 6a130f8 commit dd09190
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 dd09190

Please sign in to comment.