diff --git a/shs/shs.module b/shs/shs.module index b9f73bc..103a02d 100644 --- a/shs/shs.module +++ b/shs/shs.module @@ -553,6 +553,10 @@ function shs_field_formatter_view($entity_type, $entity, $field, $instance, $lan */ function shs_term_get_children($vid, $parent = 0, $settings = array(), $reset = FALSE) { $terms = &drupal_static(__FUNCTION__, array()); + + // Reset taxonomy_get_tree()'s static cache. + drupal_static_reset('taxonomy_get_tree'); + $node_count = !empty($settings['node_count']) && variable_get('taxonomy_maintain_index_table', TRUE); if ($reset || ($vid && empty($terms[$vid][$parent][$node_count]))) {