Project

General

Profile

« Previous | Next » 

Revision 04b1e433

Added by Andreas Kohlbecker over 3 years ago

ref #9184 ignoring null entities in lucene search result and showing error to user

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.page.theme
106 106
    $taxa = array();
107 107
    // $highlightedFragments = array();
108 108
    foreach ($pager->records as $searchResult) {
109
      $taxa[] = &$searchResult->entity;
109
      if($searchResult->entity != null){
110
        $taxa[] = &$searchResult->entity;
111
      } else {
112
        drupal_set_message("NULL entry in search results: The search index may not be up to date with the data base.", 'error');
113
      }
110 114
      /*
111 115
       if(!isset($searchResult->fieldHighlightMap)){
112 116
      $searchResult->fieldHighlightMap = NULL;

Also available in: Unified diff