Przeglądaj źródła

Fied bug in feature views_data_alter hook that kept chado_XXXX tables from being integrated if the priority wasn't 9

spficklin 12 lat temu
rodzic
commit
4a288d93ee
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      tripal_feature/tripal_feature.views.inc

+ 8 - 1
tripal_feature/tripal_feature.views.inc

@@ -36,8 +36,15 @@ function tripal_feature_views_data()  {
     $tables = array(
       'feature',
     );
+        
     foreach ($tables as $tablename) {
-      if (!tripal_views_is_integrated($tablename, 9)) {
+    	// get the setup with the lightest priority. That's the table 
+    	// that currently integrated with views.
+    	$priority = tripal_views_get_lightest_priority_setup($tablename);
+    	
+    	// check to see if the table is integrated. If it is then integrate it's
+    	// corresponding 'chado_[table]' table.
+      if (!tripal_views_is_integrated($tablename, $priority)) {
         $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, TRUE);
 
         // Add in node relationships if chado is in the same db as drupal