Download & Extend

Lightest vocabulary and terms not working

Project:Custom breadcrumbs
Version:7.x-2.x-dev
Component:custom_breadcrumbs_taxonomy
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

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.

AttachmentSize
cb_lightest-0.patch770 bytes

Comments

#1

Status:active» needs review

#2

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

#3

many thanks for patch #1, works like a charm

#4

Status:needs review» reviewed & tested by the community

Works great, thanks!

nobody click here