Closed (duplicate)
Project:
Hansel breadcrumbs
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2012 at 21:37 UTC
Updated:
29 Jul 2012 at 21:32 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| hansel-taxonomy--undefined-index-tid.patch | 1.05 KB | semiaddict |
Comments
Comment #1
mauritsl commentedSeems to be a duplicate of #1365428: Hansel Taxonomy treats too many fields as term references and should be fixed in latest dev.