Explorar o código

Fixed issue with phylgenetic tree viewer showing up on other content types

Stephen Ficklin %!s(int64=7) %!d(string=hai) anos
pai
achega
3dd3de9f90
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal_chado/includes/tripal_chado.fields.inc

+ 1 - 1
tripal_chado/includes/tripal_chado.fields.inc

@@ -1543,7 +1543,7 @@ function tripal_chado_bundle_instances_info_custom(&$info, $entity_type, $bundle
   }
 
   // Phylotree Viewer
-  if (chado_table_exists('phylotree')) {
+  if ($table_name == 'phylotree') {
     $field_name = 'operation__phylotree_vis';
     $schema = chado_get_schema('phylotree');
     $pkey = $schema['primary key'][0];