Closed (fixed)
Project:
Discuss This!
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
10 Jul 2008 at 20:57 UTC
Updated:
31 Jul 2008 at 04:47 UTC
Jump to comment: Most recent file
The used Taxonomy ID while creation of forum-topic is hardcoded - should be variable
discussthis.module Line 409:
$values['taxonomy'][1] = $tid;
the one should be the corresponding vocabulary-id for forum-vocab.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 281092.patch | 851 bytes | spiderman |
Comments
Comment #1
EgonO commentedthe corresponding vocab id is stored in the "vocabulary" table with the "module" field data "forum"
hope this helps
Comment #2
EgonO commentedme again ;)
the function taxonomy_get_vocabularies should be helpfull
Comment #3
spidermanGood catch! Attached is a patch to fix this by grabbing the forum_nav_vocabulary variable which forum.module sets up to determine which vocabulary ID should be used. Note this patch is against the latest CVS revision of the module (1.7)
Comment #4
spidermanComment #5
spidermanI just realized I hadn't properly committed my most recent changes to the correct branch, so the development snapshot tarball wasn't being updated properly. I've just committed this patch, along with the other recent HEAD revision commits to DRUPAL-5, so a fresh tarball should be up shortly.
Meantime EgonO, if you have a chance to test this patch and confirm that it works properly for you, I'd be glad to know it works for more than just me :)
Comment #6
EgonO commentedi'll try this patch later this evening, reporting you my experiences with it.
Comment #7
EgonO commentedit's just the missing ";" after
$forum_vid = variable_get('forum_nav_vocabulary', 1)the rest seems to work.
Comment #8
spidermanYes, I goofed on the original patch, and committed a proper fix for this later on yesterday- if you download the latest -dev snapshot, you should be fine :)
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.