From fc6a0c9fff38f65e496f9730bba54eadbfa78122 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 4 Jun 2004 07:21:15 +0000 Subject: [PATCH] Re-fixed bug 1488 hack --- calendar/event.php | 6 ++++++ calendar/event_edit.html | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/calendar/event.php b/calendar/event.php index 008ac9cbe1af5..1a31d416f9337 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 4350060aecb5a..359b2cff9b2ef 100644 --- a/calendar/event_edit.html +++ b/calendar/event_edit.html @@ -1,7 +1,3 @@ -courseid) ? $form->courseid : $site->id); -?>