From d2cc6294eea61b94ce13f7c1e393e825d0cf8acd Mon Sep 17 00:00:00 2001 From: Marijn Kampf Date: Wed, 21 May 2014 09:29:02 +0100 Subject: [PATCH] Call to extend() in index for controller 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'));) --- code/Calendar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/Calendar.php b/code/Calendar.php index ebb6ec6..52782e6 100755 --- a/code/Calendar.php +++ b/code/Calendar.php @@ -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'));