MDL-26243 calendar: display correct number of repeated events

This commit is contained in:
Charles Fulton
2012-03-08 06:47:07 -08:00
parent 5bbf3cb72b
commit eb5947bcca
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -133,14 +133,16 @@ class event_form extends moodleform {
$mform->setDefault('repeats', 1);
$mform->disabledIf('repeats','repeat','notchecked');
} else if ($repeatedevents > 0) {
} else if ($repeatedevents) {
$mform->addElement('hidden', 'repeatid');
$mform->setType('repeatid', PARAM_INT);
$mform->addElement('header', 'repeatedevents', get_string('repeatedevents', 'calendar'));
$mform->addElement('checkbox', 'repeateditall', null, get_string('repeateditall', 'calendar', $repeatedevents), 'repeat');
$mform->setDefault('repeateditall', 'checked');
$mform->addElement('radio', 'repeateditall', null, get_string('repeateditall', 'calendar', $this->_customdata->event->eventrepeats), 1);
$mform->addElement('radio', 'repeateditall', null, get_string('repeateditthis', 'calendar'), 0);
$mform->setDefault('repeateditall', 1);
}
+1 -1
View File
@@ -114,7 +114,7 @@ $string['pref_timeformat_help'] = 'You can choose to see times in either 12 or 2
$string['quickdownloadcalendar'] = 'Quick download / subscribe to calendar';
$string['recentupcoming'] = 'Recent and next 60 days';
$string['repeatedevents'] = 'Repeated events';
$string['repeateditall'] = 'Apply changes to all {$a} events in this repeat series';
$string['repeateditall'] = 'Also apply changes to the other {$a} events in this repeat series';
$string['repeateditthis'] = 'Apply changes to this event only';
$string['repeatevent'] = 'Repeat this event';
$string['repeatnone'] = 'No repeats';