From c9e62725a232a50a655158cb86987667c6063cdc Mon Sep 17 00:00:00 2001
From: Donald Buczek <buczek@molgen.mpg.de>
Date: Wed, 12 Feb 2025 12:42:27 +0100
Subject: [PATCH] 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 @@ <h1 class="title has-text-centered">{% trans 'Contact List' %}</h1>
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);
});
</script>