Browse Source

Execute the delete query

Abdullah Almsaeed 6 years ago
parent
commit
6ab8719b17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/includes/tripal_chado.entity.inc

+ 1 - 1
tripal_chado/includes/tripal_chado.entity.inc

@@ -148,7 +148,7 @@ function tripal_chado_entity_delete($entity, $type) {
 
   // Delete the removed entity from the corresponding chado_bio_data_x table
   $bundle = $entity->bundle;
-  db_delete("chado_{$bundle}")->condition('entity_id', $entity->id);
+  db_delete("chado_{$bundle}")->condition('entity_id', $entity->id)->execute();
 }
 
 /**