From 7f1f3a773a9695c042424b37800a75f78d165620 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 16 Apr 2021 21:50:45 +0200 Subject: [PATCH] fix angeltype selection on admin shift entry create --- includes/controller/shift_entries_controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/controller/shift_entries_controller.php b/includes/controller/shift_entries_controller.php index 29ca88e7..707c6a0d 100644 --- a/includes/controller/shift_entries_controller.php +++ b/includes/controller/shift_entries_controller.php @@ -87,8 +87,8 @@ function shift_entry_create_controller_admin($shift, $angeltype) } $angeltypes = AngelTypes(); - if ($request->has('angeltype_id')) { - $angeltype = AngelType($request->input('angeltype_id')); + if ($request->hasPostData('angeltype_id')) { + $angeltype = AngelType($request->postData('angeltype_id')); } if (empty($angeltype)) { if (count($angeltypes) == 0) {