The hansel_taxonomy module throws the following notices when trying to create a term link on a node page which has a non-term field that uses the options widget (such as a currency field):

  • Notice: Undefined index: tid in hansel_taxonomy_action_add_term_path_get_crumbs() (line 74 of /var/www/dev/sites/all/modules/hansel/taxonomy/hansel_taxonomy.module).
  • Notice: Trying to get property of non-object in hansel_taxonomy_action_add_term_path_get_crumbs() (line 76 of /var/www/dev/sites/all/modules/hansel/taxonomy/hansel_taxonomy.module).

I fixed this by checking for the existence of $term['tid'] as per the attached patch.
I'm not sure if it is the right way to handle this.

Comments

mauritsl’s picture

Status: Needs review » Closed (duplicate)

Seems to be a duplicate of #1365428: Hansel Taxonomy treats too many fields as term references and should be fixed in latest dev.