Skip to content
Snippets Groups Projects
Commit a5ca2ad8 authored by eileen's avatar eileen
Browse files

[REF] use generic loadStandardSearchOptionsFromUrl

I picked this up as a reviewer's commit of https://github.com/civicrm/civicrm-core/pull/13651

That PR is stale but I like to pick out a bit I can get merged when closing a stale pr
parent 7c295e89
Branches
Tags
No related merge requests found
......@@ -531,17 +531,14 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
* driven by the wizard framework
*/
$this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean');
$this->_force = CRM_Utils_Request::retrieve('force', 'Boolean');
$this->_groupID = CRM_Utils_Request::retrieve('gid', 'Positive', $this);
$this->_amtgID = CRM_Utils_Request::retrieve('amtgID', 'Positive', $this);
$this->_ssID = CRM_Utils_Request::retrieve('ssID', 'Positive', $this);
$this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter', 'String', $this);
$this->_ufGroupID = CRM_Utils_Request::retrieve('id', 'Positive', $this);
$this->_componentMode = CRM_Utils_Request::retrieve('component_mode', 'Positive', $this, FALSE, CRM_Contact_BAO_Query::MODE_CONTACTS, $_REQUEST);
$this->_operator = CRM_Utils_Request::retrieve('operator', 'String', $this, FALSE, CRM_Contact_BAO_Query::SEARCH_OPERATOR_AND, 'REQUEST');
$this->loadStandardSearchOptionsFromUrl();
/**
* set the button names
*/
......@@ -559,7 +556,6 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
}
// assign context to drive the template display, make sure context is valid
$this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this, FALSE, 'search');
if (!CRM_Utils_Array::value($this->_context, self::validContext())) {
$this->_context = 'search';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment