From 259e0c0226131787a25618ce127a55124bc347da Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 15 Oct 2016 10:11:54 +1100 Subject: [PATCH] Add support for recordOnClick in relationRender --- modules/backend/behaviors/RelationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 1e38156b5..04220cb29 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -398,7 +398,7 @@ class RelationController extends ControllerBehavior /* * Apply options and extra config */ - $allowConfig = ['readOnly', 'recordUrl']; + $allowConfig = ['readOnly', 'recordUrl', 'recordOnClick']; $extraConfig = array_only($options, $allowConfig); $this->extraConfig = $extraConfig; $this->applyExtraConfig($extraConfig, $field); @@ -1521,7 +1521,7 @@ class RelationController extends ControllerBehavior } $parsedConfig = array_only($config, ['readOnly']); - $parsedConfig['view'] = array_only($config, ['recordUrl']); + $parsedConfig['view'] = array_only($config, ['recordUrl', 'recordOnClick']); $this->originalConfig->{$field} = array_replace_recursive( $this->originalConfig->{$field},