aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSebastian Schenk <sebastian.schenk@itz.uni-halle.de>2025-06-26 20:02:27 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-06-27 09:32:52 +0200
commitd8eca53d6a105ae1378f7195fde2b3050a424e94 (patch)
tree209300d196e44e66a1e62e00affd4cf8a01e0002 /app
parent6ba5f1df0f307994cf11479a32a5b660d5d8e1c1 (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.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/course/room_requests.php b/app/controllers/course/room_requests.php
index a340a41..4928d5a 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;