Skip to content

Fix use of retrieve so we don't get undefined methods if parameters are not defined.

mattwire requested to merge mattwire/dataprocessor:fixundefinedmethods into master

All of these CRM_Utils_Request::retrieve() instances are retrieving URL parameters. If the URL parameter does not exist it tries to retrieve via $this but if get() does not exist on $this it crashes with undefined method.

Eg. Error: Call to undefined method CRM_Contact_Selector_DataProcessorContactSearch::get() in CRM_Utils_Request::retrieve() (line 94 of /home/matthew/buildkit/build/d7master/web/sites/all/modules/civicrm/CRM/Utils/Request.php).

Merge request reports

Loading