]> git.mjollnir.org Git - moodle.git/commitdiff
Adding event from day view defaults to that day for event start.
authordefacer <defacer>
Mon, 24 May 2004 12:28:38 +0000 (12:28 +0000)
committerdefacer <defacer>
Mon, 24 May 2004 12:28:38 +0000 (12:28 +0000)
calendar/view.php

index d6846d3abf25e2fa19c5c67f918a5fa38167e260..98c961e989f74c1a04819463c1c7474625a94d56 100644 (file)
@@ -198,6 +198,7 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
                 calendar_course_filter_selector($getvars).'</div><div style="float: right;">';
         $text.= '<form style="display: inline;" action="'.CALENDAR_URL.'event.php" method="get">';
         $text.= '<input type="hidden" name="action" value="new" />';
+        $text.= '<input type="hidden" name="cal_d" value="'.$d.'" />';
         $text.= '<input type="hidden" name="cal_m" value="'.$m.'" />';
         $text.= '<input type="hidden" name="cal_y" value="'.$y.'" />';
         $text.= '<input type="submit" value="'.get_string('newevent', 'calendar').'" />';