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 |
Jump to:
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
Losing data this easily sounds like a critical issue to me.
#2
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