Coming from #1875264: Taxonomy term template (Panels) works on D6, but don't on D7.
In i18n_menu.module, the function i18n_menu_init() copies the code from menu_link_get_preferred function of core menu.inc.

The following statement is present in i18n_menu.module, but not on the original core source:
$query->condition('ml.menu_name', $menu_names, 'IN');

That unnecessary condition is causing the following bug:

  • environment with two languages
  • Catalog taxonomy with the following terms:
    a
    -b
    --c
    
  • content type with term reference field pointing to Catalog
  • taxonomy menu on Catalog without automatic expansion of menu items
  • taxonomy menu is visible on a block of the main page
  • clicking on "a" does not expand the children (it should expand instead)
CommentFileSizeAuthor
#1 1876166-i18n_menu_init.patch537 bytesmandreato

Comments

mandreato’s picture

Status: Active » Needs review
StatusFileSize
new537 bytes

Apply this patch, flush cache and rebuild taxonomy menu.

dmitriy.trt’s picture

FYI, this condition has been removed from the Drupal core to fix #942782: Custom menus never receive an active trail

jose reyero’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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