Allow dot-notation for specifying external parameters for a component (#4978)

This commit is contained in:
Ben Thomson 2020-03-13 09:03:18 +08:00 committed by GitHub
parent cca8da2af3
commit 96c062bb47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1538,7 +1538,7 @@ class Controller
$newPropertyValue = $routerParameters[$routeParamName] ?? null;
}
else {
$newPropertyValue = $parameters[$paramName] ?? null;
$newPropertyValue = array_get($parameters, $paramName, null);
}
$component->setProperty($propertyName, $newPropertyValue);