Allow any casting done in Type::validate to bubble up to Request::retrieveValue
authoreileen <emcnaughton@wikimedia.org>
Thu, 13 Feb 2020 20:18:34 +0000 (09:18 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 13 Feb 2020 20:18:34 +0000 (09:18 +1300)
commit8ae17a2d8a4c57bc387f65aacf8c14043349ade2
tree92cde76bf3690c8b7a8978f99d04aae499180bcb
parent7ae610d5a5b5016abd1ecb4742594828d43e2b9b
Allow any casting done in Type::validate to bubble up to Request::retrieveValue

The validate function returns
- NULL if the passed in value is not valid
- THe passed in value if valid or
 - The passed in value cast to an integer if the value is valid and the type is Int or Integer

By always using the returned value we allow it to be cast, where appropriate
CRM/Utils/Request.php