Posted by locomo on March 6, 2010 at 6:11am
5 followers
Jump to:
| Project: | Taxonomy Limit |
| Version: | 6.x-0.1 |
| Component: | Code |
| Category: | task |
| Priority: | minor |
| Assigned: | Wim Leers |
| Status: | reviewed & tested by the community |
Issue Summary
Hi .. not sure in which module the trouble lies.
I'm using taxonomy_limit to limit the number of terms that can be selected in a certain vocabulary - the module prints a brief description beneath the selector stating something like (Choose up to 3)
When I enable hierarchical select this field description is no longer printed
This is what is being set by taxonomy_limit:
$form['taxonomy'][$vid]['#description']
The weird thing is that i haven't even enabled HS for the specific vocab in question.
Any ideas?
Thanks
Comments
#1
It's because HS has set the taxonomy_override_selector variable (to allow it to completely override the Taxonomy form on node forms, for better scalability), which then results in HS generating even Taxonomy forms that do not use HS. This is a design flaw in Drupal and there's nothing I can do about it.
Taxonomy Limit should run *after* Hierarchical Select Taxonomy, hence it should adapt its module weight.
#2
confirmed.. i manually made Taxonomy Limit heavier than HS and all good now - the form description field is being properly displayed
+1 on adjusting the module weight
thanks Wim!
#3
You're welcome :)
I know there's no patch included, but the solution has been proven to work, which should be sufficient in this case. Hence marking RTBC.
#4
How to adjust module weight?
#5
sub
#6
What's happening to me is that it won't let the user create the content if they select any hierarchical term. If they don't select one it works fine. Also if the user selects too many then it dosn't show it as an error. I tried changeing the "taxonomy limit" modules weight but it didn't change anything.