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;