Using HEAD. Right now if i have a Vocabulary with 3 levels

Level A
-Level B
--Level C

  1. I create a new node and tag with the deepest Level C term (saving all the path)
  2. I get Level A > Level B > level C
  1. I change this node and tag with Level B term leaving the Level C empty
  2. I get Level A > Level B
  1. I change this node and tag it with <none> in the first Level A
  2. I get Level A > Level B
  1. I change this node and tag it with Labelname in the first Level A
  2. I get Level A > Level B
  1. I change this node and tag it with Labelname in the Level B
  2. I get Level A

its seems its impossible to get rid of the Level A tag.

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Category: feature » bug
Priority: Normal » Critical

Thanks for the bug report. I'm working on multiple select support first, then I will start the bugfixing.

wim leers’s picture

Status: Active » Fixed

I'm fairly sure this bug has been fixed by the last commit. Please verify.

derjochenmeyer’s picture

I took a fresh CVS Version of hierarchical_select.js and hierarchical_select.module

Still the same behaviour. I cant get rid of the first level tags. Chosing <none> or level label does nothing to existing tag.

Expected behaviour would be to remove all tags from the node.

wim leers’s picture

Status: Fixed » Active

Reproduced.

derjochenmeyer’s picture

Status: Active » Fixed

i think it might be a bug in the js function

HierarchicalSelect.updateOriginalSelect = function(hsid) {

when nothing is selected the option with value="" is not selected because the values dont match with "none" or "level_0". so nothing is changed and the tags are not removed.

derjochenmeyer’s picture

Status: Fixed » Active

sorry i changed the Status without intention.

wim leers’s picture

I just fixed in the case of "none", but forgot to fix it for the case when labels are selected.

Follow-up will come soon.

Note that this is actually not a real bug, but an anomaly of Drupal core's Taxonomy module, and how that works. If nothing is selected, it *should* select nothing, but instead, it keeps the previous selection.

wim leers’s picture

Status: Active » Fixed

Voila, also fixed.

derjochenmeyer’s picture

Works :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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