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.

CommentFileSizeAuthor
cb_lightest-0.patch770 bytesscito
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scito’s picture

Status: Active » Needs review
novakov’s picture

the patch i was searching for! thanks for sharing - now i`m able to define which vocabulary to use for breadcrumbs.

boreg’s picture

many thanks for patch #1, works like a charm

benshell’s picture

Status: Needs review » Reviewed & tested by the community

Works great, thanks!

colan’s picture

Status: Reviewed & tested by the community » Fixed

Committed in 5ef1d28.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.