Project

General

Profile

Revision 38753115

ID387531156b0498480c8191616ce5b169bbc5a1ab
Parent 1722f82f
Child 67a5cafa

Added by Andreas Kohlbecker almost 4 years ago

classification search filter was no longer stored in the session

View differences:

modules/cdm_dataportal/cdm_dataportal.search.php
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

  
566 561
  // Simple search will not submit a 'tree' query parameter,
567 562
  // so we add it here from what is stored in the session unless
568 563
  // SIMPLE_SEARCH_IGNORE_CLASSIFICATION is checked in the settings.
569 564
  if (!isset($form_params['tree']) && !variable_get(SIMPLE_SEARCH_IGNORE_CLASSIFICATION, 0)) {
570 565
    $form_params['tree'] = get_current_classification_uuid();
571 566
  }
567
  // Store in session.
568
  $_SESSION['cdm']['search'] = $form_params;
569

  
570
  // ----------- further processing that must not be store in the session --------- //
571

  
572 572
  // If the 'NONE' classification has been chosen (advanced search)
573 573
  // delete the tree information to avoid unknown uuid exceptions in the
574 574
  // cdm service.

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)