I'm having a bug when I try to put an a node add form inside a panel page. In this case I have an a hierachical select field from a taxonomy vocabulary and when I select a value from HSfield, this disappear in the form. At least occurs in alpha 4 & alpha 5 versions.
Four notice warning messages appears when I try to save the content type:
Notice: Undefined offset: 0 in _hierarchical_select_hierarchy_validate() (line 1932 in sites/all/modules/hierarchical_select/hierarchical_select.module).
Notice: Undefined offset: 0 in _hierarchical_select_hierarchy_generate() (line 1626 in sites/all/modules/hierarchical_select/hierarchical_select.module).
Notice: Undefined index: label_0 in _hierarchical_select_hierarchy_generate() (line 1742 de in /sites/all/modules/hierarchical_select/hierarchical_select.module).
Notice: Undefined offset: -1 in _hierarchical_select_hierarchy_generate() (line 1752 in sites/all/modules/hierarchical_select/hierarchical_select.module).
Regards
Comments
Comment #1
drupso commentedMore information about bug: The HSField disappears when I choose first fields that no has children in the Hierarchical Select Field. If first I choose fields with children and after change it for a field with no children, HS Field not disappears.
Comment #2
danielphenry commentedI am also seeing this with regular taxonomy select.
I changed the widget setting from "Save term lineage" to "Save only the deepest term" and the notice went away. So it's probably an error with saving the algorithm saving the parent items.
Comment #3
TySkby commentedI can also confirm this issue and notice the same circumstances @drupso mentioned in #1.
In regards to @danielson317 comment, I changed the widget setting to "Save only the deepest term" and am still experiencing the same issue, so it doesn't seem to be related to that setting.
I previously had this problem with another HSField, but resolved it by changing the widget settings for to include "Allow creation of new levels" in addition to "Allow Creation of New Terms". However, the field that I'm currently having the issue with does not allow users to create new terms, so I'm not sure how to get this fixed.
HS could be a greatly useful module, but between this issue and the issue being discussed over at http://drupal.org/node/1293166 I may have to seek out a more stable alternative.
Comment #4
kenorb commentedComment #5
stefan.r commented#1754202: Notice: Undefined offset: 2 in _hierarchical_select_hierarchy_generate()..