diff --git a/inventory/routes/search.py b/inventory/routes/search.py index 33d23d2..249f262 100644 --- a/inventory/routes/search.py +++ b/inventory/routes/search.py @@ -76,7 +76,7 @@ def init_search_routes(app): {"field": "updates", "format": lambda x: len(x)}, ] worklog_results = worklog_service.list({ - 'contact.label|work_item.label__icontains': q, + 'contact.label|work_item.label|updates.content__icontains': q, 'fields': [ "contact.label", "work_item.label", diff --git a/inventory/templates/search.html b/inventory/templates/search.html index 02859a9..7183fbb 100644 --- a/inventory/templates/search.html +++ b/inventory/templates/search.html @@ -26,5 +26,4 @@ {{ worklog_results | safe }} - Search including the content of work log updates is currently disabled pending a bug fix. {% endblock %}