the data_taxonomy_data_insert function starts like:
function data_taxonomy_data_insert($record, $table_name) {
if ($info = data_taxonomy_get_info($data_table)) {
$data_table needs to be replaced with $table_name for this to work.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 883090-3_static_cache.patch | 1.13 KB | alex_b |
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