wrong table in delete revision SQL for synthesized products

pwolanin - March 9, 2007 - 17:26
Project:Synthesized Products
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

reported by coupet (http://drupal.org/user/44538)

See delete FROM {chemical}
table chemical does not exist.

<?php
/**
* Implementation of hook_nodeapi().
*/
function synth_products_nodeapi(&$node, $op, $teaser, $page) {
switch (
$op) {
   case
'delete revision':
    
db_query('DELETE FROM {chemical} WHERE vid = %d', $node->vid);
     break;
}
}
?>

#1

pwolanin - March 10, 2007 - 20:42
Status:active» patch (code needs review)

delete revision code for each node type.

AttachmentSize
sp_fix_revision_1.patch1.08 KB

#2

coupet - March 11, 2007 - 21:26

confirm patch apply nicely.

Also tables (data) updated respectively including: synch_product, synth_transaction, node & node_revisions

Darly

#3

pwolanin - March 12, 2007 - 00:43
Status:patch (code needs review)» fixed

ok, patch committed.

#4

Anonymous - March 26, 2007 - 00:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.