Closed (fixed)
Project:
Hierarchical Select
Version:
7.x-3.x-dev
Component:
Code - Taxonomy
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Feb 2012 at 16:13 UTC
Updated:
19 Jan 2015 at 10:04 UTC
Jump to comment: Most recent
Comments
Comment #1
wim leersIt should be, but it indeed isn't. It was, in D6 and D5. Something must've gone wrong with the port to D7.
Comment #2
wim leersAny people experiencing this issue, please contribute by debugging this. Starting point:
_hierarchical_select_process_calculate_selections(), specifically at:It seems
$valuedoesn't get set, and hence the following can't work either:Comment #3
lpedretti commentedThe hook in hs_taxonomy.module, line 639
As the term is an object, it's passed by reference to taxonomy_term_save(), and in the inline documentation of taxonomy_term_save in drupal's taxonomy.module:
so, replacing foreach ($children as $term) {...} with just return $term->tid; should be enough.
It fixed the issue for me.
Hope it helps!
Best regards
Comment #4
nwom commentedI was having the same issue and the solution works great. In the current dev release, the code mentioned above, starts at line #771.
Would love to see this patched. Thanks.
Comment #5
stefan.r commentedCommitted to 7.x-dev
(see commit f196e92)