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."

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcelovani’s picture

Version: 7.x-1.9 » 7.x-1.x-dev
Status: Needs work » Needs review
FileSize
623 bytes

I 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.

Marty2081’s picture

Assigned: marcelovani » Unassigned
Status: Needs review » Fixed

Thanks 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?

Status: Fixed » Closed (fixed)

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