From 54e8c71a4dc7ffe6e800ef9438d7272644cffe21 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Wed, 6 Jan 2016 15:24:17 +0000 Subject: [PATCH] Use setFailover() in ContentController (closes silverstripe/silverstripe-framework#4821) --- code/controllers/ContentController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/controllers/ContentController.php b/code/controllers/ContentController.php index 944ce5e6..a762611e 100755 --- a/code/controllers/ContentController.php +++ b/code/controllers/ContentController.php @@ -43,8 +43,10 @@ class ContentController extends Controller { } $this->dataRecord = $dataRecord; - $this->failover = $this->dataRecord; + parent::__construct(); + + $this->setFailover($this->dataRecord); } /**