diff --git a/main/calendar/agenda.lib.php b/main/calendar/agenda.lib.php index e329489bc8..48df72d6f6 100644 --- a/main/calendar/agenda.lib.php +++ b/main/calendar/agenda.lib.php @@ -1508,6 +1508,7 @@ class Agenda $selectedEveryoneOptions = array(); if (isset($sendTo['everyone']) && $sendTo['everyone']) { $selectedEveryoneOptions = array('selected'); + $sendToUsers = array(); } $select->addOption(get_lang('Everyone'), 'everyone', $selectedEveryoneOptions); @@ -1698,9 +1699,7 @@ class Agenda $form->freeze(array('repeat_type', 'repeat_end_day')); $repeat->_attributes['disabled'] = 'disabled'; - } - $form->addElement('html', ''); } @@ -1769,7 +1768,7 @@ class Agenda /** * @param FormValidator $form - * @param array $sendTo array('users' => [1, 2], 'groups' => [3, 4]) + * @param array $sendTo array('everyone' => false, 'users' => [1, 2], 'groups' => [3, 4]) * @param array $attributes * @param bool $addOnlyItemsInSendTo * @return bool