From b3fe8de7fb86f88b4c8090b4ce09362ceb17d587 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 28 Sep 2016 13:26:28 +1000 Subject: [PATCH] Prevent extra config from bleeding to other definitions --- modules/backend/behaviors/RelationController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 017e61634..41328f664 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -399,10 +399,9 @@ class RelationController extends ControllerBehavior * Apply options and extra config */ $allowConfig = ['readOnly', 'recordUrl']; - if ($extraConfig = array_only($options, $allowConfig)) { - $this->extraConfig = $extraConfig; - $this->applyExtraConfig($extraConfig, $field); - } + $extraConfig = array_only($options, $allowConfig); + $this->extraConfig = $extraConfig; + $this->applyExtraConfig($extraConfig, $field); /* * Initialize