Răsfoiți Sursa

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

Stephen Ficklin 7 ani în urmă
părinte
comite
3dd3de9f90
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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];