From a3389b7fce7de8b654e57f9ce8da4b17a139c49b Fri, 18 Nov 2011 18:34:21 -0300
From: Javier Castro <javier.alejandro.castro@gmail.com>
Date: Fri, 18 Nov 2011 18:27:08 -0300
Subject: [PATCH] If taxonomy terms are hidden on the content type, hansel is not getting the forum path correctly. Load terms on demand.

Signed-off-by: Javier Castro <javier.alejandro.castro@gmail.com>

diff --git a/forum/hansel_forum.module b/forum/hansel_forum.module
index 9f97559..5ecec49 100644
--- a/forum/hansel_forum.module
+++ b/forum/hansel_forum.module
@@ -78,6 +78,8 @@
           if (isset($term['taxonomy_term'])) {
             $terms[$term['tid']] = $term['taxonomy_term'];
           }
+          elseif (isset($term['tid']))
+            $terms[$term['tid']] = taxonomy_term_load($term['tid']);
         }
       }
       if ($term = reset($terms)) {