Revision 7d42c393
Added by Andreas Kohlbecker over 7 years ago
modules/cdm_dataportal/cdm_dataportal.search.php | ||
---|---|---|
242 | 242 |
'#title' => t('Classification'), |
243 | 243 |
'#weight' => 1, |
244 | 244 |
'#type' => 'select', |
245 |
'#default_value' => get_current_classification_uuid(),
|
|
245 |
'#default_value' => $preset_classification_uuid,
|
|
246 | 246 |
'#options' => cdm_get_taxontrees_as_options(TRUE), |
247 | 247 |
'#description' => t('A filter to limit the search to a specific classification. Choosing <em>--- ALL ---</em> will disable this filter.'), |
248 | 248 |
); |
... | ... | |
558 | 558 |
$form_params['area'] = implode(',', $area_uuids); |
559 | 559 |
} |
560 | 560 |
|
561 |
// Store in session. |
|
562 |
$_SESSION['cdm']['search'] = $form_params; |
|
563 |
|
|
564 |
// ----------- further processing that must not be store in the session --------- // |
|
565 |
|
|
561 | 566 |
// Simple search will not submit a 'tree' query parameter, |
562 | 567 |
// so we add it here from what is stored in the session unless |
563 | 568 |
// SIMPLE_SEARCH_IGNORE_CLASSIFICATION is checked in the settings. |
... | ... | |
577 | 582 |
// $form_params['ignore_classification'] = NULL; |
578 | 583 |
// } |
579 | 584 |
|
580 |
// Store in session. |
|
581 |
$_SESSION['cdm']['search'] = $form_params; |
|
582 | 585 |
|
583 | 586 |
return $form_params; |
584 | 587 |
} |
Also available in: Unified diff
solving probelms with search parameters not being remembered