Previewing a content type resets the primary term selection to the first option.
prosen - December 5, 2008 - 16:10
| Project: | Primary Term |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
When creating content, preview resets the primary term selection to the first option.

#1
i just want to say that,drupal is the best thing that has ever happened to me.
thomas jesus
#2
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.