From 3c1e6ea8464d560440347cf2a42503ea796c227e Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Tue, 29 Jul 2014 19:22:18 +1000 Subject: [PATCH] Fixes #481 - Native widget handlers should still initialize --- modules/backend/behaviors/RelationController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index ec7a7e062..30109c7ac 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -154,6 +154,9 @@ class RelationController extends ControllerBehavior */ public function initRelation($model, $field = null) { + if ($field == null) + $field = post(self::PARAM_FIELD); + $this->config = $this->originalConfig; $this->model = $model; $this->field = $field;