diff --git a/zmsadmin/src/Zmsadmin/WorkstationProcessRedirect.php b/zmsadmin/src/Zmsadmin/WorkstationProcessRedirect.php index d8d8d9482..9a4880196 100644 --- a/zmsadmin/src/Zmsadmin/WorkstationProcessRedirect.php +++ b/zmsadmin/src/Zmsadmin/WorkstationProcessRedirect.php @@ -80,7 +80,7 @@ public function readResponse( 'scope' => $workstation->scope, 'scopes' => $department->getScopeList(), 'menuActive' => 'workstation', - 'errors' => $request->getParam('errors') + 'errors' => $request->getParam('errors') ?? null ) ); } diff --git a/zmsadmin/templates/block/appointment/formRedirect.twig b/zmsadmin/templates/block/appointment/formRedirect.twig index fee338aa3..d10bdc32f 100644 --- a/zmsadmin/templates/block/appointment/formRedirect.twig +++ b/zmsadmin/templates/block/appointment/formRedirect.twig @@ -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,