Revision bb177c82
Added by Andreas Kohlbecker over 5 years ago
modules/cdm_dataportal/cdm_dataportal.search.php | ||
---|---|---|
713 | 713 |
|| (isset($request_params['typeDesignationStatusUuids'][0]) && !$request_params['typeDesignationStatusUuids'][0])){ |
714 | 714 |
unset($request_params['typeDesignationStatusUuids']); |
715 | 715 |
} |
716 |
|
|
716 |
} |
|
717 |
if(isset($request_params['taxonNameFilterPattern'])){ |
|
718 |
// trim and remove empty taxon name query strings |
|
719 |
$request_params['taxonNameFilterPattern'] = trim($request_params['taxonNameFilterPattern']); |
|
720 |
if(!$request_params['taxonNameFilterPattern']){ |
|
721 |
unset($request_params['taxonNameFilterPattern']); |
|
722 |
} |
|
717 | 723 |
} |
718 | 724 |
|
719 | 725 |
$registration_pager = cdm_ws_get('registrationDTO/find', NULL, queryString($request_params)); |
... | ... | |
772 | 778 |
function cdm_dataportal_search_registration_form($form, &$form_state) { |
773 | 779 |
|
774 | 780 |
_add_font_awesome_font(); |
775 |
|
|
781 |
|
|
776 | 782 |
$filter_presets = (isset($_SESSION['cdm'][SESSION_KEY_SEARCH_REGISTRATION_FILTER]) ? $_SESSION['cdm'][SESSION_KEY_SEARCH_REGISTRATION_FILTER] : array()); |
777 | 783 |
$filter_presets = array_merge($filter_presets, remove_drupal_form_params($_REQUEST)); |
778 | 784 |
$form['#action'] = url('/cdm_dataportal/search/registration/'); |
Also available in: Unified diff
fix #7615 cleaning registration search parameter 'taxonNameFilterPattern'