Re-fixed bug 1488 hack
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user