Skip to content

Commit

Permalink
Call to extend() in index for controller
Browse files Browse the repository at this point in the history
UncleCheese, can you add an extend to the top of the index of Calendar_Controller so the redirects can be overruled? (I'm using a customised calendar which I want to redirect to $this->redirect($this->Link('month')); instead of $this->redirect($this->Link('show/month'));)
  • Loading branch information
marijnkampf committed May 21, 2014
1 parent e9d2842 commit d2cc629
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ public function respond() {
}

public function index(SS_HTTPRequest $r) {
$this->extend('index',$r);
switch($this->DefaultView) {
case "month":
return $this->redirect($this->Link('show/month'));
Expand Down

0 comments on commit d2cc629

Please sign in to comment.