From 3866ccbb209961134465973a24d9ddc476be9369 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 25 Jul 2015 14:19:34 +1000 Subject: [PATCH] This really shouldn't be here --- modules/backend/behaviors/RelationController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 3236e3466..fb8d5d17f 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -617,9 +617,8 @@ class RelationController extends ControllerBehavior * Single (belongs to, has one) */ elseif ($this->viewMode == 'single') { - $query = $this->relationObject; - $this->controller->relationExtendQuery($query, $this->field); - $this->viewModel = $query->getResults() ?: $this->relationModel; + $this->viewModel = $this->relationObject->getResults() + ?: $this->relationModel; $config = $this->makeConfigForMode('view', 'form'); $config->model = $this->viewModel;