ZF-2455: Wrong variable name in Zend_Controller_Request_Http::setParam()
Description
Variable $keyName is never used. Should be $key (or the other way around):
public function setParam($key, $value)
{
$keyName = (null !== ($alias = $this->getAlias($key))) ? $alias : $key;
parent::setParam($key, $value);
return $this;
}
Comments
Posted by Marc Jakubowski (octavian) on 2008-01-18T10:02:30.000+0000
Additionally there seems to be no test that covers the case of aliasing a key and setting a parameter for it.
Posted by Michal Minicki (martel) on 2008-01-29T08:40:09.000+0000
Fixed in trunk as well as in release branch. Good catch.