A taxonomy term synonym clears after re-ordering using drag-and-drop feature

Max_R - April 25, 2008 - 15:30
Project:Drupal
Version:6.2
Component:taxonomy.module
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

A taxonomy term synonym clears after re-ordering using drag-and-drop feature. To reproduce, go to list terms, assign a synonym to a term, save the term and then re-order terms using mouse drag-and-drop.
Press "save" and here you're.

#1

Rowanw - April 26, 2008 - 00:37
Priority:normal» critical

Losing data this easily sounds like a critical issue to me.

#2

Devis - April 26, 2008 - 23:58

Same problem, synonyms got deleted after reordering terms with ajax.

Line "353" in "taxonomy.module", inside the function "taxonomy_save_term"

db_query('DELETE FROM {term_synonym} WHERE tid = %d', $form_values['tid']);

runs also on reordering so synonyms get deleted. As a temporary patch I added an "if" to prevent deletion:

if ($_POST["form_id"] != "taxonomy_overview_terms") {
           lines 353..360
}

and seems to work, but that's just a trick

Devis Lucato

#3

Robin Monks - August 29, 2008 - 19:30
Title:A taxonomy term synonym clears after re-ordering using darg-and-drop feature» A taxonomy term synonym clears after re-ordering using drag-and-drop feature
 
 

Drupal is a registered trademark of Dries Buytaert.