From: moodler Date: Fri, 4 Jun 2004 07:21:15 +0000 (+0000) Subject: Re-fixed bug 1488 hack X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fc6a0c9fff38f65e496f9730bba54eadbfa78122;p=moodle.git Re-fixed bug 1488 hack --- diff --git a/calendar/event.php b/calendar/event.php index 008ac9cbe1..1a31d416f9 100644 --- a/calendar/event.php +++ b/calendar/event.php @@ -279,6 +279,12 @@ $form->minutes = ''; } } + if (!empty($form->courseid)) { // Fixes bug 1488 + $course = get_record('course', 'id', $form->courseid); + } else { + $course = $site; + } + print_side_block_start(get_string('editevent', 'calendar'), array('class' => 'mycalendar')); include('event_edit.html'); print_side_block_end(); diff --git a/calendar/event_edit.html b/calendar/event_edit.html index 4350060aec..359b2cff9b 100644 --- a/calendar/event_edit.html +++ b/calendar/event_edit.html @@ -1,7 +1,3 @@ -courseid) ? $form->courseid : $site->id); -?>