fix angeltype selection on admin shift entry create

This commit is contained in:
msquare 2021-04-16 21:50:45 +02:00
parent d054378a63
commit 7f1f3a773a
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ function shift_entry_create_controller_admin($shift, $angeltype)
} }
$angeltypes = AngelTypes(); $angeltypes = AngelTypes();
if ($request->has('angeltype_id')) { if ($request->hasPostData('angeltype_id')) {
$angeltype = AngelType($request->input('angeltype_id')); $angeltype = AngelType($request->postData('angeltype_id'));
} }
if (empty($angeltype)) { if (empty($angeltype)) {
if (count($angeltypes) == 0) { if (count($angeltypes) == 0) {