In theme_apachesolr_autocomplete_highlight() the 'show_counts' variable is used but it's never defined nor passed into the theme callback. Instead, the theme definition includes a 'count' value which in the function is actually loaded from elsewhere.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
2.17 KB

This fixes both problems by adding the 'show_counts' value to the theme definition, passes it into the theme function, and then fixes the use of the 'count' value.