I use HS for a regular taxonomy vocabulary with 2 levels, parent/child. I enabled the dropbox, and set a limit to the selection, 5.

Whenever I save a node after hitting this limit, my dropbox data is lost and the nod is not saved. I get this message: "Category field is required." and I can start over again.

Problem does not occur as soon as I disable the limit.
It doesnt matter whether I use 'save lineage' or not.

Hope someone can figure this out.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Status: Active » Postponed (maintainer needs more info)

Can you reproduce this on a vanilla Drupal site? If you cannot, keep on adding modules that you're using on your actual site until the problem is reproduced.

When you're able to reproduce this (on a vanilla Drupal site with the minimum number of modules to reproduce it), then please make a screencast of:

  1. your site configuration
  2. the problem being reproduced

That makes it easier for me to reproduce the problem. Thanks!

P.S.: don't have any screencast software yet? On Windows and Mac OS X, you can use the free Jing.

Anonymous’s picture

Tanks for that Jing link. I do need some time to debug this, but I'll check it out. I have a lot of modules running a heavy Drupal site.

Dmitriy.trt’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
849 bytes
2.84 KB

See patch, it was made from HS 6.x-3.0
There is no $element['#value']['hierarchical_select'] when maximum selections was reached. So I've added check for $element['#value']['dropbox'] existence.

Also, I'm attaching modified version of hs_tutorial module which reproduces this problem.

Glenmoore’s picture

subscribing

Wim Leers’s picture

Title: Once you hit maximum selections, data is lost: "Category field is required" » Once you hit the dropbox limit, the dropbox gets reset
Status: Needs review » Fixed
VTM’s picture

@Dmitriy,

The patch is not working for me. I use 6.x-3.0.
I even manually replaced the required row, but did not help.
Is there any special instruction? should I only replace this single row?

many thanks

Wim Leers’s picture

Just install the latest 3.x-dev.

mikejonesok’s picture

Thanks Wim! Your module will my website! Really it will!

Wim Leers’s picture

Great, Mike! :)

What site is that by the way?

Dmitriy.trt’s picture

@VTM,
There is no special instructions, just apply the patch.
Can you post here your HS element definition? Did you tested it with latest 3.x-dev version?

mikejonesok’s picture

MyGamePower.com, thanks again for this!

VTM’s picture

@Dimitry,
thanks. I installed 6.x-3.x-dev and it is working.
A bit slow (as I have a lot of terms - few 100s - in the second hierarchy) - but work.

Status: Fixed » Closed (fixed)

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