Explorar el Código

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

Stephen Ficklin hace 7 años
padre
commit
3dd3de9f90
Se han modificado 1 ficheros con 1 adiciones y 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];