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
delete revision code for each node type.
#2
confirm patch apply nicely.
Also tables (data) updated respectively including: synch_product, synth_transaction, node & node_revisions
Darly
#3
ok, patch committed.
#4