Bläddra i källkod

Small fix to tripal views chado integrations: ensured that field description is properly set even if not specified in the schema api

Lacey Sanderson 10 år sedan
förälder
incheckning
cc3ce5973e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      tripal_views/includes/tripal_views_integration.inc

+ 1 - 1
tripal_views/includes/tripal_views_integration.inc

@@ -95,7 +95,7 @@ function tripal_views_get_integration_array_for_chado_table($table_name, $base_t
         'name' => $field_name,
         'title' => ucwords(str_replace('_', ' ', $field_name)),
         'type' => $field_schema['type'],
-        'description' => (isset($field_schema['description'])) ? $field_schema['description'] : ucwords(str_replace('_', ' ', $field_name)),
+        'description' => (!empty($field_schema['description'])) ? $field_schema['description'] : ucwords(str_replace('_', ' ', $field_name)),
         'handlers' => array(),
         'joins' => array()
       );