Skip to content

Commit

Permalink
MDL-10084 propogate course id through calendar pages to ensure consis…
Browse files Browse the repository at this point in the history
…tent display for site front page, my moodle and courses
  • Loading branch information
dwoolhead committed Jun 22, 2007
1 parent b74be1a commit d3b2659
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions calendar/event_delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<input type="hidden" name="y" value="<?php echo $y; ?>" />
<input type="hidden" name="confirm" value="1" />
<input type="hidden" name="repeats" value="0" />
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
&nbsp;
</p>
</form>
Expand All @@ -29,6 +30,7 @@
<input type="hidden" name="y" value="<?php echo $y; ?>" />
<input type="hidden" name="confirm" value="1" />
<input type="hidden" name="repeats" value="1" />
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
&nbsp;
</p>
</form>
Expand All @@ -43,6 +45,7 @@
<input type="hidden" name="cal_m" value="<?php echo $m; ?>" />
<input type="hidden" name="cal_d" value="<?php echo $d; ?>" />
<input type="hidden" name="cal_y" value="<?php echo $y; ?>" />
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
&nbsp;
</p>
</form>
Expand Down
1 change: 1 addition & 0 deletions calendar/event_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<input type="hidden" name="courseid" value="<?php echo $form->courseid; ?>" />
<input type="hidden" name="format" value="<?php echo $form->format; ?>" />
<input type="hidden" name="action" value="edit" />
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
</p>
</form>

1 change: 1 addition & 0 deletions calendar/event_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
<input type="hidden" name="format" value="<?php echo $form->format; ?>" />
<input type="hidden" name="action" value="new" />
<input type="hidden" name="type" value="<?php echo $form->type; ?>" />
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
</p>
</form>

1 change: 1 addition & 0 deletions calendar/event_select.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
<p>
<input type="hidden" name="action" value="new" />
<input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />
<input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
</p>
</form>
2 changes: 2 additions & 0 deletions calendar/set.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
$cal_d = optional_param('cal_d');
$cal_m = optional_param('cal_m');
$cal_y = optional_param('cal_y');
$action = optional_param('action');
$type = optional_param('type');

// Initialize the session variables
calendar_session_vars();
Expand Down

0 comments on commit d3b2659

Please sign in to comment.