Skip to content

Commit

Permalink
Re-fixed bug 1488 hack
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jun 4, 2004
1 parent 15a07d8 commit fc6a0c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions calendar/event.php
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions calendar/event_edit.html
@@ -1,7 +1,3 @@
<?php
// The following is a hack to fix bug 1488
$course = get_record('course', 'id', ($form->courseid) ? $form->courseid : $site->id);
?>
<form method="post" action="event.php" name="edit">
<table cellpadding=5>
<tr>
Expand Down

0 comments on commit fc6a0c9

Please sign in to comment.