Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Index and Metadata optimizations for AR Listing View #70

Merged
merged 11 commits into from
Apr 20, 2018
Prev Previous commit
Next Next commit
Do not save null values.
  • Loading branch information
nihadness committed Apr 17, 2018
commit e50b411cbfbd018352b79bef3a3e4ecfd9eb240d
4 changes: 4 additions & 0 deletions bika/health/catalog/indexers/analysisrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ def listing_searchable_text(instance):
logger.error("{} has no attribute called '{}' ".format(
repr(instance), field_name))
continue

if not value:
continue
if isinstance(value, list):
value = " ".join(value)

entries.append(value)

# Getters of senaite.health extension fields are not created. That's why
Expand Down