Browse Source

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

Stephen Ficklin 7 years ago
parent
commit
1528b952dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_chado_views/includes/tripal_chado_views_integration.inc

+ 2 - 2
tripal_chado_views/includes/tripal_chado_views_integration.inc

@@ -119,11 +119,11 @@ function tripal_chado_views_get_integration_array_for_chado_table($table_name, $
   foreach ($schema['fields'] as $field_name => $field_schema) {
 
     // Base field definition
-    if (!empty($field_name) && !empty($field_schema['type'])) {
+    if (!empty($field_name)) {
       $defn_array['fields'][$field_name] = array(
         'name' => $field_name,
         'title' => ucwords(str_replace('_', ' ', $field_name)),
-        'type' => $field_schema['type'],
+        'type' => (isset($field_schema['type'])) ? $field_schema['type'] : 'text',
         'description' => (!empty($field_schema['description'])) ? $field_schema['description'] : ucwords(str_replace('_', ' ', $field_name)),
         'handlers' => array(),
         'joins' => array()