Project

General

Profile

« Previous | Next » 

Revision 30399ffa

Added by Andreas Kohlbecker almost 8 years ago

#4973 fixing advanced search area filter in webservice request preprocessing

View differences:

modules/cdm_dataportal/cdm_dataportal.search.php
513 513
    $area_filter_preset = explode(',', variable_get(CDM_SEARCH_AREA_FILTER_PRESET, ''));
514 514
  }
515 515

  
516
  $area_uuids = array();
516 517
  if($area_filter_preset){
517 518
    $area_uuids = $area_filter_preset;
518 519
  }
519 520
  elseif (isset($_REQUEST['search']['areas']['area']) && is_array($_REQUEST['search']['areas']['area'])) {
520
    $area_uuids = array();
521 521
    foreach ($_REQUEST['search']['areas']['area'] as $areas) {
522 522
      $area_uuids = array_merge($area_uuids, $areas);
523 523
    }
524 524
  }
525
  if(isset($area_uuids[0])){
525
  if(count($area_uuids) > 0){
526 526
    $form_params['area'] = implode(',', $area_uuids);
527 527
  }
528 528

  

Also available in: Unified diff