If event was marked as send to everyone clean the $sendToUsers list.

1.9.x
Julio Montoya 11 years ago
parent 8c5d5c38c5
commit 1e7a5c84d5
  1. 5
      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', '</div>');
}
@ -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

Loading…
Cancel
Save