Projet

Général

Profil

Révision 3dfa8105

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ds/modules/ds_search/ds_search.module
496 496
      // Render the node.
497 497
      $rendered = drupal_render($build);
498 498
      // Attach extra information to the rendered output.
499
      $rendered .= ' ' . $node->search_extra;
499
      $rendered .= ' ' . implode('', $node->search_extra);
500 500
      // Generate the snippet based on rendered content.
501 501
      $node->snippet = search_excerpt($keys, $rendered);
502 502
    }
......
704 704

  
705 705
      $load = entity_load($result['fields']['entity_type'], array($result['fields']['entity_id']));
706 706
      $entity = reset($load);
707
      if (!$entity) {
708
        watchdog('ds_search', "Empty entity loaded from results, possibly corrupt solr index? (@entity_type, @id)", array('@entity_type' => $result['fields']['entity_type'], '@id' => $result['fields']['entity_id']), WATCHDOG_DEBUG);
709
        continue;
710
      }
707 711

  
708 712
      // Add the snippet, url and extra info on the object.
709 713
      $entity->search_snippet = $result['snippet'];

Formats disponibles : Unified diff