|Status:||reviewed & tested by the community|
Discovered while trying to use Menu Position with Special Menu Items, the breadcrumb trail does not get set because Special Menu Items calls drupal_get_breadcrumb() and drupal_set_breadcrumb() in hook_init(). This causes the 'menu_set_active_trail' and 'drupal_set_breadcrumb' static caches to be initialised too early for menu_position_activate_rule() to have any effect.
The attached patch fixes this by explicitly resetting these static caches when setting breadcrumbs. This could perhaps be considered a bug in Special Menu Items, but I suspect other breadcrumb related modules may cause the same problem.