Closed (duplicate)
Project:
Internationalization
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2009 at 13:29 UTC
Updated:
2 Mar 2010 at 10:01 UTC
Drupal 6 uses a simple flag to prevent generation of the entire taxonomy tree so that other modules can handle the taxonomy form field. Currently two modules use this flag, Hierarchical Select and TaxiSelect, but many custom solutions are probably out there to handle the poor performance related to taxonomy_get_tree().
For the node form, a simple check on the variable should be added:
<?php
if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id
&& ($node = $form['#node']) && isset($form['taxonomy']) && !variable_get('taxonomy_override_selector', FALSE)) {
//...
}
?>
A similar check is needed on the admin parent / relations select lists
The simple workaround that the other modules use is to set the weight to be greater than the weight of the highest system weight of modules that ignore the flag: Eg: content_taxonomy, i18ntaxonomy, og_vocab - probably others out there.
Comments
Comment #1
cronix commentedsubscribing
Comment #2
alan d. commentedSee #619726: Ensure normal (non-HS) taxonomy form items get translated via i18n