Incorrect module weight
movit - November 2, 2007 - 14:41
| Project: | Suggested Terms |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Crell |
| Status: | closed |
Jump to:
Description
Suggestedterm module should have weight more then taxonomy module weight otherwise thi module does not works at all.
At form alter time modules _alter hooks called in wight then alphabetical order. After install Suggestedterm have weight 0 after install and _alter hook clled before taxonomy module hook. So there are no taxonomy at node form at Suggestedterm form_alter hook call time. Such module weight correction can be done in .install file. You need change weight field in system table record corresponding Suggestedterm module. Good idea will be set this weight to taxonomy weight + 1.

#1
I changed suggestedterm module weight to 1. This required a db manual edit - not good. There is no .install file for this module.
Can this be fixed the right way, i.e. at install please?
Also, terms I have added via freeform input now show up. However, terms added via the Taxanomy module do not show up. Is there a way that terms added from tax module also show as choices along with those added on the fly?
#2
I have run this module on a couple of sites now without changing the module weight, and it works fine. Are you sure that is the problem?
For the manually-added terms, what is your sort method? Terms that are unused are not going to show up, because they haven't been used.
#3
"Are you sure that is the problem?"
;-) I am not so arrogant as to be sure of anything.
However, the module did not work. I made it's weight +1 based on a comment I found here (cannot find the comment now that everything has been moved around). That suggestion went over my head. But I made the change directly within the db, and no other changes. It now works. Was it the problem? Wish I knew!
However, terms added via Tax module do not show up. Terms added on the fly do show up, and are added to Tax Terms as expected.
I could find no tables associated with this module except term, so I have not the slightest idea how it can tell the difference between those added in Tax module and those added on the fly!
It is a really cool module, apparently with limitations.
#4
I've committed an install file to set the weight to taxonomy+1. If that doesn't fix it, please reopen this issue.
For the terms added via the admin issue, please open a new issue. Thanks.
#5
Automatically closed -- issue fixed for two weeks with no activity.