소스 검색

Debugging

spficklin 12 년 전
부모
커밋
ff58bdb19e
2개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 4
      tripal_core/api/tripal_core.api.inc
  2. 1 1
      tripal_views/api/tripal_views.api.inc

+ 5 - 4
tripal_core/api/tripal_core.api.inc

@@ -2834,13 +2834,14 @@ function tripal_core_get_chado_tables($include_custom = NULL) {
     }
   }
   
-  // now add in the custom tables too
+  // now add in the custom tables too if requested
   if ($include_custom) {
     $sql = "SELECT table_name FROM {tripal_custom_tables}";
     $resource = db_query($sql);
-  }
-  while ($r = db_fetch_object($resource)) {
-    $tables[$r->table_name] = $r->table_name;
+    
+    while ($r = db_fetch_object($resource)) {
+      $tables[$r->table_name] = $r->table_name;
+    }
   }
 
   asort($tables);

+ 1 - 1
tripal_views/api/tripal_views.api.inc

@@ -154,7 +154,7 @@ function tripal_views_is_lightest_priority_setup($setup_id, $table_name) {
  */
 function tripal_views_integration_add_entry($defn_array) {
   $no_errors = TRUE;
-
+dpm($defn_array);
   // First insert into tripal_views
   $view_record = array(
     'table_name' => $defn_array['table'],