Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | hs_tutorial.zip | 2.84 KB | Dmitriy.trt |
#3 | hierarchical-select-max-selections-data-lost-fix.patch | 849 bytes | Dmitriy.trt |
Comments
Comment #1
Wim LeersCan 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:
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.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedTanks 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.
Comment #3
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedSee 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.
Comment #4
Glenmoore CreditAttribution: Glenmoore commentedsubscribing
Comment #5
Wim LeersThanks! Committed: http://drupal.org/cvs?commit=335040
Comment #6
VTM CreditAttribution: VTM commented@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
Comment #7
Wim LeersJust install the latest 3.x-dev.
Comment #8
mikejonesok CreditAttribution: mikejonesok commentedThanks Wim! Your module will my website! Really it will!
Comment #9
Wim LeersGreat, Mike! :)
What site is that by the way?
Comment #10
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@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?
Comment #11
mikejonesok CreditAttribution: mikejonesok commentedMyGamePower.com, thanks again for this!
Comment #12
VTM CreditAttribution: VTM commented@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.