Permalink
Browse files

MDL-26243 calendar: display correct number of repeated events

  • Loading branch information...
1 parent 5d332d4 commit 2199fb263f5e9dd39c52cd1d566c906a125b9a0a @mackensen mackensen committed with stronk7 Mar 8, 2012
Showing with 6 additions and 4 deletions.
  1. +5 −3 calendar/event_form.php
  2. +1 −1 lang/en/calendar.php
@@ -133,14 +133,16 @@ function definition () {
$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['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';

0 comments on commit 2199fb2

Please sign in to comment.