The method custom_breadcrumbs_taxonomy_node_get_lightest_term() does not return the lightest term of the lightest vocabulary.
This method assumes that the terms are ordered by vocabulary weight and term weight as in Drupal 6's method taxonomy_node_get_terms().
However, the terms of custom_breadcrumbs_taxonomy_node_get_terms() are not ordered.
I've added a patch which restores the same order as in Drupal 6.
| Comment | File | Size | Author |
|---|---|---|---|
| cb_lightest-0.patch | 770 bytes | scito |
Comments
Comment #1
scitoComment #2
novakov commentedthe patch i was searching for! thanks for sharing - now i`m able to define which vocabulary to use for breadcrumbs.
Comment #3
boreg commentedmany thanks for patch #1, works like a charm
Comment #4
benshell commentedWorks great, thanks!
Comment #5
colanCommitted in 5ef1d28.