small fix time slots settings

This commit is contained in:
Matthieu Tudury 2023-05-13 17:24:13 +02:00
parent 42554d2664
commit 22b2822d7c
No known key found for this signature in database
GPG key ID: 8F5801857EFFB05C

View file

@ -424,7 +424,9 @@ class calendar extends rcube_plugin
$timeslots = $this->rc->config->get('calendar_timeslots', $this->defaults['calendar_timeslots']);
$select = new html_select(['name' => '_timeslots', 'id' => $field_id]);
$select->add($choices);
foreach ($choices as $choice) {
$select->add($choice, $choice);
}
$p['blocks']['view']['options']['timeslots'] = [
'title' => html::label($field_id, rcube::Q($this->gettext('timeslots'))),