diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-15 13:12:49 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-11-15 13:12:49 +0000 |
| commit | 05cf41b84ab6f664db4f1ee7f27c675ea6235776 (patch) | |
| tree | 129d872ef4c07ad1c7cfbc22619fc3e59eb15147 /app/controllers/consultation/admin.php | |
| parent | de69b6fdcb19deb5cbbfaec3e3a87f923ea6f762 (diff) | |
lock times for consultation blocks, fixes #1264
Closes #1264
Merge request studip/studip!785
Diffstat (limited to 'app/controllers/consultation/admin.php')
| -rw-r--r-- | app/controllers/consultation/admin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index 8f354b2..1eecc29 100644 --- a/app/controllers/consultation/admin.php +++ b/app/controllers/consultation/admin.php @@ -199,6 +199,7 @@ class Consultation_AdminController extends ConsultationController $block->confirmation_text = trim(Request::get('confirmation-text')) ?: null; $block->note = Request::get('note'); $block->size = Request::int('size', 1); + $block->lock_time = Request::int('lock_time'); $slots = $block->createSlots(Request::int('duration'), $pause_time, $pause_duration); if (count($slots) === 0) { @@ -387,6 +388,7 @@ class Consultation_AdminController extends ConsultationController $this->block->show_participants = Request::bool('show-participants', false); $this->block->require_reason = Request::option('require-reason'); $this->block->confirmation_text = trim(Request::get('confirmation-text')); + $this->block->lock_time = Request::int('lock_time'); foreach ($this->block->slots as $slot) { $slot->note = ''; |
