From c9e62725a232a50a655158cb86987667c6063cdc Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 12 Feb 2025 12:42:27 +0100 Subject: [PATCH 1/2] contactlist: Fix name search In 9b17dc68cc47d0b903ea5f2e7267af83c000d437 ("contactlist: Use name_and_title") the columns were updated, but the searchFunction caller was not so some searches failed. Fix. --- mpicms/templates/personal/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpicms/templates/personal/list.html b/mpicms/templates/personal/list.html index 0cac3dd..d1f3196 100644 --- a/mpicms/templates/personal/list.html +++ b/mpicms/templates/personal/list.html @@ -148,7 +148,7 @@

{% trans 'Contact List' %}

var search_field = document.getElementById('search_field'); search_field.addEventListener('keyup', function() { var searchString = search_field.value; - userList.search(searchString, ['first_name', 'last_name', 'email', 'phone', 'positions', 'special_functions', 'groups'], searchFunction); + userList.search(searchString, ['name', 'email', 'phone', 'room', ], searchFunction); }); From 93156f603eaecf90ba28d0a63b9b878dec19ffe7 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 12 Feb 2025 12:46:59 +0100 Subject: [PATCH 2/2] translations: Fix translation of "name" to "Name" "Nachname" ist not correct in all contexts. For example, "name" in the contact list is the full name. Fix to "Name". This is a quickfix which should be reviewed and possibly converted into a gettext context. --- locale/de/LC_MESSAGES/django.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index afd206c..7d4b3a7 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -445,7 +445,7 @@ msgstr "Sonderfunktion" #: mpicms/templates/wagtailusers/users/list.html:8 #: mpicms/templates/wagtailusers/users/list.html:12 msgid "Name" -msgstr "Nachname" +msgstr "Name" #: mpicms/templates/personal/list.html:93 msgid "Email"