Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | apachesolr_autocomplete-n2654226-2.patch | 2.17 KB | DamienMcKenna |
Comments
Comment #2
DamienMcKennaThis 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.