? sp_fix_revision_1.patch
Index: synth_products.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/synth_products/synth_products.module,v
retrieving revision 1.11
diff -u -p -r1.11 synth_products.module
--- synth_products.module	30 Jan 2007 18:29:34 -0000	1.11
+++ synth_products.module	10 Mar 2007 20:41:49 -0000
@@ -3,7 +3,7 @@
 
 /**
  * @file
- * Define a node type to track a chemical database.
+ * Define a node type to track a database of synthesized compounds (or other products).
  */
 
 /**
@@ -127,7 +127,12 @@ function synth_products_perm() {
 function synth_products_nodeapi(&$node, $op, $teaser, $page) {
   switch ($op) {
     case 'delete revision':
-      db_query('DELETE FROM {chemical} WHERE vid = %d', $node->vid);
+      if ($node->type == 'synth_product') {
+        db_query('DELETE FROM {synth_product} WHERE vid = %d', $node->vid);
+      }
+      elseif ($node->type == 'synth_transaction') {
+        db_query('DELETE FROM {synth_transaction} WHERE vid = %d', $node->vid);
+      }
       break;
   }
 }
