When creating content, preview resets the primary term selection to the first option.

CommentFileSizeAuthor
#2 343267.patch805 bytesmvc

Comments

thomas25’s picture

i just want to say that,drupal is the best thing that has ever happened to me.
thomas jesus

mvc’s picture

Status: Active » Needs review
StatusFileSize
new805 bytes

The problem seems to be that the default value of the form input is set using primary_term_get_term($form['#node']->vid) but when previewing the node this returns false. Equivalently, when editing an existing node, the default value of the form would be reset to the original value and would not be updated if changed during editing.

This patch solves both problems.

sethcohn’s picture

Assigned: Unassigned » sethcohn

+1 to this

brianV’s picture

Status: Needs review » Reviewed & tested by the community
sethcohn’s picture

thanks, brianV. I'll be rolling a new version shortly with this.

brianV’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.