Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.9.6
-
Fix Version/s: 1.9.7
-
Component/s: Zend_Controller
-
Labels:None
Description
If I have a parameter in the request object that has a value of boolean false (set by a route), and I pass in a default value, the default value will always be set if the parameter is boolean false. This is because the first part of the condition in Zend_Controller_Action::_getParam() does an Equal comparison, when it should be doing an Identical comparison. Attached is a patch that correctly fixes the issue.
Attachments
Issue Links
| This issue duplicates: | ||||
| ZF-5163 | _getParam in Controller/Action don't handle 0 |
|
|
|
This patch changes the first part of the condition to check for whether or not to use the default value from using an Equal (==) comparison, to an Identical (===) comparison.