Browse Source

Added job_id for job that deletes Tv2 nodes

ccheng 7 years ago
parent
commit
7c9f7f1009
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_chado/includes/tripal_chado.migrate.inc

+ 2 - 2
tripal_chado/includes/tripal_chado.migrate.inc

@@ -744,7 +744,7 @@ function tripal_chado_delete_selected_types($tv2_content_types = array()) {
   foreach ($tv2_content_types AS $type) {
     $sql = "DELETE FROM $type";
     db_query($sql);
-    chado_cleanup_orphaned_nodes(str_replace('chado_', '', $type));
+    chado_cleanup_orphaned_nodes(str_replace('chado_', '', $type), $job_id);
   }
 }
 
@@ -1201,4 +1201,4 @@ function tripal_chado_migrate_resource_links($bundle_name) {
       }
     }
   }
-}
+}