Download & Extend

deleting rule leading to query error message & db

Project:Meta Tags by Path
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Shannon Lucas
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Version:5.x-1.1» 5.x-1.2

This is corrected in 5.x-1.2.

Thanks for catching this one!

#2

Assigned to:Anonymous» Shannon Lucas
Status:active» fixed

#3

Status:fixed» closed (fixed)

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