فهرست منبع

Merge branch '7.x-2.x' of github.com:tripal/tripal into 7.x-2.x

Stephen Ficklin 8 سال پیش
والد
کامیت
69721083ca
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      tripal_core/includes/tripal_core.search.inc

+ 3 - 3
tripal_core/includes/tripal_core.search.inc

@@ -68,7 +68,7 @@ function tripal_core_entity_property_info_alter(&$info) {
           if (!isset($info['node']['bundles'][ $n['base'] ]['properties'][$machine_name])) {
             $info['node']['bundles'][ $n['base'] ]['properties'][$machine_name] = array(
               'label' => $label,
-              'description' => $details['description'],
+              'description' => (isset($details['description'])) ? $details['description'] : '',
               'type' => ($details['type'] == 'varchar') ? 'text' : $details['type'],
               'schema field' => '[' . $machine_name . ']',
               // The following getter callback is a generic function that can retrieve
@@ -108,7 +108,7 @@ function tripal_core_entity_property_info_alter(&$info) {
           // among node types to facillitate use as a facet.
           $info['node']['properties'][$table . '.' . $right_field .' key'] = array(
             'label' => $key_label . ' (All Content Types)',
-            'description' => $field_details['description'],
+            'description' => (isset($field_details['description'])) ? $field_details['description'] : '',
             'type' => 'text',
             // We include both the token for the current node type and the token for
             // the parent table. That way the organism node will appear in the results
@@ -126,7 +126,7 @@ function tripal_core_entity_property_info_alter(&$info) {
           // search for fruitfly and get all features with that as an organism.
           $info['node']['bundles'][ $n['base'] ]['properties'][$machine_name .' expanded'] = array(
             'label' => $label . ' (Expanded)',
-            'description' => $field_details['description'],
+            'description' => (isset($field_details['description'])) ? $field_details['description'] : '',
             'type' => 'text',
             'schema field' => $format,
             // The following getter callback is a generic function that can retrieve