MDL-26243 calendar: display correct number of repeated events
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user