diff options
| author | Sebastian Schenk <sebastian.schenk@itz.uni-halle.de> | 2025-06-26 20:02:27 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-06-27 09:32:50 +0200 |
| commit | 1a7b91b9c64fe158a1bb1c3905a8700a5f4528e5 (patch) | |
| tree | b4b3cc7ac3a760eaaa8672e788c19ddad8c9411d /app | |
| parent | c66efac87d87247e6879d3d65d2d6c2448f5f914 (diff) | |
check for 0 seats in room booking, fixes #4892
Closes #4892
Merge request studip/studip!3701
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/course/room_requests.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/course/room_requests.php b/app/controllers/course/room_requests.php index c4fd82a..ef58f8a 100644 --- a/app/controllers/course/room_requests.php +++ b/app/controllers/course/room_requests.php @@ -502,6 +502,12 @@ class Course_RoomRequestsController extends AuthenticatedController ); } + // no min number of seats + if (empty($_SESSION[$request_id]['selected_properties']['seats']) || $_SESSION[$request_id]['selected_properties']['seats'] < 1) { + PageLayout::postError(_('Die Mindestanzahl der Sitzplätze muss größer als 0 sein!')); + $this->redirect('course/room_requests/request_find_available_properties/' . $request_id . '/1/category'); + } + $this->request_id = $request_id; $this->step = 3; |
