Closed (fixed)
Project:
Revision Moderation
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2007 at 14:44 UTC
Updated:
5 Mar 2007 at 16:16 UTC
Hi, first - thanks very much for this module, it's exactly what I needed!
I have one slight bug in the code. In revision_moderation.module file, line #314 the table name is not enclosed in {}, so in the case someone uses table prefix string, the publishing of the revisions fails:
db_query("UPDATE node SET vid = %d, title = '%s' WHERE nid = %d", $vid, $node->title, $nid);
should be:
db_query("UPDATE {node} SET vid = %d, title = '%s' WHERE nid = %d", $vid, $node->title, $nid);
Thanks, B.
Comments
Comment #1
webchickOops! Thanks, fixed.
Comment #2
(not verified) commented