Prevent extra config from bleeding to other definitions
This commit is contained in:
parent
baefa3e50d
commit
b3fe8de7fb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue