deleting rule leading to query error message & db

miro_dietiker - August 5, 2008 - 08:26
Project:Meta Tags by Path
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Shannon Lucas
Status:closed
Description

When deleting a rule in admin "By Path" tab
/admin/content/nodewords/path

It always throws an error like:
user warning: Unknown column 'id' in 'where clause' query: DELETE FROM nodewords_bypath_tags WHERE id = 1 in /home/sites/lz/web/includes/database.mysql.inc on line 172.

This is due to nodewords_bypath.forms.inc @235
db_query('DELETE FROM {nodewords_bypath_tags} WHERE id = %d', $id);

which should be path_id instead of id.

thus leading to nodewords_bypath_tags to contain orphans.

#1

Shannon Lucas - August 6, 2008 - 13:37
Version:5.x-1.1» 5.x-1.2

This is corrected in 5.x-1.2.

Thanks for catching this one!

#2

Shannon Lucas - August 6, 2008 - 13:37
Assigned to:Anonymous» Shannon Lucas
Status:active» fixed

#3

Anonymous (not verified) - August 20, 2008 - 13:44
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.