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.
When the Term description is empty the filter won't work, even if you configure it on /admin/config/system/lexicon and check the option "Show lexicon terms even if there is no description."
Comment | File | Size | Author |
---|---|---|---|
#1 | hyperlink-not-showing-term-without-description-1594148.patch | 623 bytes | marcelovani |
Comments
Comment #1
marcelovaniI did some debugging in the code and found that there is a logic to check if the variable 'lexicon_hide_if_empty' is TRUE but this variable is not used anywhere else in the code.
I checked lexicon.admin.inc where there is a setting for "Show lexicon terms even if there is no description" it is using a variable 'lexicon_allow_no_description'.
I have a fix for it.
Comment #2
Marty2081 CreditAttribution: Marty2081 commentedThanks for the bug report. Actually you stumbled upon a bigger issue where the setting was not used at all. I made changes to the module so that the setting is now a general setting that has an effect on marking terms in content as well as showing terms on the Lexicon overview page(s). The changes are in the dev branch now. Maybe you can have a look and see if it works ok?