Component->paramName() was not functioning as described

{{ :param }} returned null, should return "param"
This commit is contained in:
Samuel Georges 2015-02-14 15:52:58 +11:00
parent 6a2f64757b
commit a2f2f5f87f
1 changed files with 3 additions and 3 deletions

View File

@ -1172,9 +1172,9 @@ class Controller
$paramName = trim($matches[1]);
if (substr($paramName, 0, 1) == ':') {
$paramName = substr($paramName, 1);
$newPropertyValue = array_key_exists($paramName, $routerParameters)
? $routerParameters[$paramName]
$routeParamName = substr($paramName, 1);
$newPropertyValue = array_key_exists($routeParamName, $routerParameters)
? $routerParameters[$routeParamName]
: null;
}