From dc1d4111e21221ed253a08ebc0be769914c86ce5 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 10 Oct 2025 08:07:09 -0500 Subject: [PATCH] Still dealing with collections bug. --- crudkit/ui/templates/form.html | 2 +- inventory/routes/entry.py | 2 +- inventory/routes/search.py | 2 +- inventory/templates/search.html | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crudkit/ui/templates/form.html b/crudkit/ui/templates/form.html index 9046b65..f57074a 100644 --- a/crudkit/ui/templates/form.html +++ b/crudkit/ui/templates/form.html @@ -35,5 +35,5 @@ {% if submit_attrs %}{% for k,v in submit_attrs.items() %} {{k}}{% if v is not sameas true %}="{{ v }}"{% endif %} {% endfor %}{% endif %} - >{{ submit_label if label else 'Save' }} + >{{ submit_label if submit_label else 'Save' }} diff --git a/inventory/routes/entry.py b/inventory/routes/entry.py index b529297..4ab9d10 100644 --- a/inventory/routes/entry.py +++ b/inventory/routes/entry.py @@ -224,7 +224,7 @@ def init_entry_routes(app): instance=obj, fields_spec=fields_spec, layout=layout, - submit_attrs={"class": "d-none", "disable": True} + submit_attrs={"class": "d-none", "disabled": True} ) return render_template("entry.html", form=form) diff --git a/inventory/routes/search.py b/inventory/routes/search.py index 249f262..33d23d2 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|updates.content__icontains': q, + 'contact.label|work_item.label__icontains': q, 'fields': [ "contact.label", "work_item.label", diff --git a/inventory/templates/search.html b/inventory/templates/search.html index 7183fbb..02859a9 100644 --- a/inventory/templates/search.html +++ b/inventory/templates/search.html @@ -26,4 +26,5 @@ {{ worklog_results | safe }} + Search including the content of work log updates is currently disabled pending a bug fix. {% endblock %}