Fix saving calendar_timeslots value

This commit is contained in:
Aleksander Machniak 2022-10-17 12:08:41 +02:00
parent 38bada80f9
commit 2a208c02ce

View file

@ -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'))),