Closed (outdated)
Project:
Hierarchical Select
Version:
7.x-3.0-alpha5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 15:38 UTC
Updated:
12 Oct 2018 at 02:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ayalon commentedI have the same problem and it can be easy reproduced:
1. Enable hs_menu for a content type
2. Create a taxonomy reference field
3. Enable HS Select for Taxonomy
4. Select a term and save the content
5. Create a new menu (not navigation)
6. Create a Navigation Element with 2 parents
If you try to edit the menu, the default value of the taxonomy term hs select will be used. The menu item is los (no default value).
After disabling HS Taxonomy, the default menu item will reappear.
This is critical, because save the content will kill the existing menu item.
Comment #2
ayalon commentedAfter 2 hours of debugging I finally unterstood the problem here and was able to fix this issue.
This error occurs only on EDITING an existing page. On content creation this is not relevant, because no menu item is available as a default value.
The problem is a check of the $form_state['input'] variable that is not empty it multiple fields are on the same page. It is better to check for the 'op'.
Please test this patch and include it in the next dev version. I'm probably not the only one wo's suffering from this bug.
Comment #3
wim leersAt the very least, the patch needs to be cleaned up. Plus, it needs further review; others should confirm this indeed fixes the problem.
Comment #4
goldIn the last 5 years this appears to have been fixed.