Set "send announcement as email" option as checked - refs BT#11725

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent dac41f67e9
commit ac03607a55
  1. 16
      main/announcements/announcements.php

@ -420,12 +420,7 @@ switch ($action) {
$announcement_to_modify = '';
}
$form->addElement(
'checkbox',
'email_ann',
null,
get_lang('EmailOption')
);
$form->addCheckBox('email_ann', '', get_lang('EmailOption'));
} else {
if (!isset($announcement_to_modify)) {
$announcement_to_modify = '';
@ -433,12 +428,7 @@ switch ($action) {
$element = CourseManager::addGroupMultiSelect($form, $group_properties['iid'], array());
$form->setRequired($element);
$form->addElement(
'checkbox',
'email_ann',
null,
get_lang('EmailOption')
);
$form->addCheckBox('email_ann', '', get_lang('EmailOption'));
}
$announcementInfo = AnnouncementManager::get_by_id($course_id, $id);
@ -459,6 +449,8 @@ switch ($action) {
}
}
$defaults['email_ann'] = true;
$form->addElement('text', 'title', get_lang('EmailTitle'));
$form->addElement('hidden', 'id');
$htmlTags = "<b>".get_lang('Tags')."</b><br /><br />";

Loading…
Cancel
Save