Преглед на файлове

it would help if I had the correct table name to delete the collection bundle

Shawna Spoor преди 7 години
родител
ревизия
7a21ff001c
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      tripal/includes/TripalEntityCollection.inc

+ 3 - 2
tripal/includes/TripalEntityCollection.inc

@@ -64,11 +64,12 @@ class TripalEntityCollection {
       db_delete('tripal_collection')
       db_delete('tripal_collection')
         ->condition('collection_id', $this->collection_id)
         ->condition('collection_id', $this->collection_id)
         ->execute();
         ->execute();
+
       // Delete the field groups from the tripal_bundle_collection table.
       // Delete the field groups from the tripal_bundle_collection table.
-      db_delete('tripal_bundle_collection')
+      db_delete('tripal_collection_bundle')
         ->condition('collection_id', $this->collection_id)
         ->condition('collection_id', $this->collection_id)
         ->execute();
         ->execute();
-        
+
       // Remove any files that may have been created
       // Remove any files that may have been created
       foreach ($this->downloaders as $class_name => $label) {
       foreach ($this->downloaders as $class_name => $label) {
         tripal_load_include_downloader_class($class_name);
         tripal_load_include_downloader_class($class_name);