If I edit a node which already has terms attched, the terms are not preselected in the form widgets.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

This seems only to happen with vocabs that are not required.

killes@www.drop.org’s picture

Hmm, 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.

killes@www.drop.org’s picture

Component: taxonomy.module » forum.module

Ok, 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.

killes@www.drop.org’s picture

Component: forum.module » taxonomy.module

The problem is more involved. Preselecting terms fails also on other node types.

killes@www.drop.org’s picture

Component: taxonomy.module » forum.module
Assigned: Unassigned » killes@www.drop.org
Status: Active » Needs review
FileSize
2.34 KB

Ok, 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.

robertDouglass’s picture

FileSize
2.25 KB

tested, works perfect, rerolled patch (don't know why it wouldn't apply cleanly for me... nothing has really changed.)

Dries’s picture

Status: Needs review » Fixed

Committed. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)