From 639339d55e8e0b893ab6f8cf58757d9a37c8c7bb Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Mon, 18 Mar 2019 14:08:47 -0600 Subject: [PATCH] Stop automatically creating camel case versions of top level configuration keys This would cause issues with repeaters in grouped mode that have an underscore in one of the groups as it would duplicate that group entry. --- modules/system/traits/ConfigMaker.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/system/traits/ConfigMaker.php b/modules/system/traits/ConfigMaker.php index 0b068227f..449aede8c 100644 --- a/modules/system/traits/ConfigMaker.php +++ b/modules/system/traits/ConfigMaker.php @@ -100,8 +100,8 @@ trait ConfigMaker } /** - * Makes a config object from an array, making the first level keys properties a new object. - * Property values are converted to camelCase and are not set if one already exists. + * Makes a config object from an array, making the first level keys properties of a new object. + * * @param array $configArray Config array. * @return stdClass The config object */ @@ -114,8 +114,7 @@ trait ConfigMaker } foreach ($configArray as $name => $value) { - $_name = camel_case($name); - $object->{$name} = $object->{$_name} = $value; + $object->{$name} = $value; } return $object;