Project

General

Profile

Revision 30399ffa

ID30399ffadc7bfc99f3e526c85881a5fc077171dc
Parent 01fff74a
Child 35bea66c

Added by Andreas Kohlbecker over 5 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

Add picture from clipboard (Maximum size: 40 MB)