From 69a6e7fb2edfe0f537a2d135accf8392ca9d8299 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 10 Oct 2025 09:17:02 -0500 Subject: [PATCH] Adding back in content search. --- inventory/routes/search.py | 2 +- inventory/templates/search.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 %}