Hi,

When I select an option using Hierarchical select and then check the preview page, the vales are not displayed or pre-populated in the Preview page. The other field values are been displayed but the values for Hierarchical select is not shown.

Comments

seaneffel’s picture

Title: Preview page resets Hierarchical select values. » Previewing nodes deletes taxonomy selections
Project: Preview » Hierarchical Select
Version: 7.x-1.x-dev » 7.x-3.0-alpha5
Component: Code » Code - Taxonomy
Priority: Normal » Critical

The preview node process resets the value of a hierarchical select term reference field to empty. Users must make term choices again before submitting.

Editing a node that has already been assigned terms with hierarchical Select widgets will also reset the selections to empty. That one is really bad for users, since moderators might edit other users work and vanquish the user's original term selections. Deleting user's stuff is bad, this why this issue is marked critical.

You can reproduce this with a clean install of Drupal 7.15 and HS 7.x-3.0-alpha5 - the current releases at this time. Create a vocabulary with at least two choices, create a corresponding term reference field on a content type, set the widget to Hierarchical Select and allow multiple values. My hs widget is configured like this:

Save term lineage
Force the user to choose a term from a deepest level
Resize disabled
Enable the dropbox, no limit, reset selection of hierarchical select disabled.

Next, create a node and select a term through the HS widget. The field is populated just fine when you save the node, but if you preview the node first then your terms are gone. If you go back to edit a node that was correctly populated then the preview step will also remove the terms then.

seaneffel’s picture

Status: Active » Closed (duplicate)

Fine. This is a duplicate, too.

See:
http://drupal.org/node/1242812