Closed (fixed)
Project:
Data
Version:
6.x-1.0-alpha12
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2010 at 13:40 UTC
Updated:
12 Oct 2010 at 17:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
batje commentedThe same typo as in the main issue appears in data_taxonomy_data_update
and removing the
static $info;from the data_taxonomy_get_info function greatly enhances the usability when using more than one table!
Comment #2
batje commentedPlus, changing
db_query("DELETE dt FROM {data_taxonomy} dt JOIN {term_data} td ON dt.tid = td.tid WHERE td.vid = %d", $vid);in the data_taxonomy_data_update function to
db_query("DELETE dt FROM {data_taxonomy} dt WHERE dt.id = %d AND data_table_name = '%s'", $id, $table_name);prevents all data + terms links from a dictionary being deleted when you update 1 data record.
(increased the priority )
Comment #3
alex_b commentedOk, this is a series of issues.
- The initial issue reported is fixed in alpha13.
- Patch for data_taxonomy_get_info() attached
- #2 warrants its own issue.
Thanks for reporting.
Comment #4
alex_b commentedMoved #2 to #925390: Data Taxonomy: Limit deletion to item id, data table name
Comment #5
alex_b commented#3 is committed, thank you:
http://drupal.org/cvs?commit=428978