diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-30 10:07:47 +0000 |
|---|---|---|
| committer | Till Glöggler <tgloeggl@uos.de> | 2022-11-30 10:07:47 +0000 |
| commit | 42c9c67e4d9b1d424129d8110bc49d02fca82ecd (patch) | |
| tree | 66813f21fc70c10ef96967aee6c15909b9f21489 /app/controllers/consultation | |
| parent | 5d86de14a9f056a39072888e4f0fe61d4647510e (diff) | |
fixes #1815
Closes #1815
Merge request studip/studip!1207
Diffstat (limited to 'app/controllers/consultation')
| -rw-r--r-- | app/controllers/consultation/admin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index 737a667..bad2421 100644 --- a/app/controllers/consultation/admin.php +++ b/app/controllers/consultation/admin.php @@ -168,6 +168,10 @@ class Consultation_AdminController extends ConsultationController throw new InvalidArgumentException(_('Die definierte Zeit bis zur Pause ist kleiner als die Dauer eines Termins.')); } + if ($this->range instanceof Institute && !Request::getArray('responsibilities')) { + throw new InvalidArgumentException(_('Es muss mindestens eine durchführende Person, Statusgruppe oder Einrichtung ausgewählt werden.')); + } + $slot_count = ConsultationBlock::countSlots( $start, $end, |
