From 2a208c02cecee789d62253b3b36014e6bf6b6a06 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 17 Oct 2022 12:08:41 +0200 Subject: [PATCH] Fix saving calendar_timeslots value --- plugins/calendar/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index f1af9f18..56a8df2d 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -417,12 +417,12 @@ class calendar extends rcube_plugin return $p; } - $field_id = 'rcmfd_timeslot'; + $field_id = 'rcmfd_timeslots'; $choices = ['1', '2', '3', '4', '6']; $timeslots = $this->rc->config->get('calendar_timeslots', $this->defaults['calendar_timeslots']); $select = new html_select(['name' => '_timeslots', 'id' => $field_id]); - $select->add($choices); + $select->add($choices, $choices); $p['blocks']['view']['options']['timeslots'] = [ 'title' => html::label($field_id, rcube::Q($this->gettext('timeslots'))),