Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I edit a node which already has terms attched, the terms are not preselected in the form widgets.
Comment | File | Size | Author |
---|---|---|---|
#6 | forum_tax_rerolled.txt | 2.25 KB | robertDouglass |
#5 | forumfix.patch | 2.34 KB | killes@www.drop.org |
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedThis seems only to happen with vocabs that are not required.
Comment #2
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedHmm, no that isn't it. It happens if i have a forum vocab and also other vocbs assigned to forums. The main forum vocab works, but the others don't regardless of beign required or not.
Comment #3
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedOk, the problem is in forum_form. There the variable taxonomy gets initialized to the tid that is from the forum vocabulary. This causes other tids to not be loaded and not be preselected in the form.
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedThe problem is more involved. Preselecting terms fails also on other node types.
Comment #5
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedOk, more of a forum issue after all. Also changes two calls of array_key_exist on an object. This works, but will probably will cease to do so at some point in time.
Comment #6
robertDouglass CreditAttribution: robertDouglass commentedtested, works perfect, rerolled patch (don't know why it wouldn't apply cleanly for me... nothing has really changed.)
Comment #7
Dries CreditAttribution: Dries commentedCommitted. Thanks.
Comment #8
(not verified) CreditAttribution: commented