Skip to content

Commit

Permalink
contactlist: Fix name search
Browse files Browse the repository at this point in the history
In 9b17dc6 ("contactlist: Use
name_and_title") the columns were updated, but the searchFunction caller
was not so some searches failed. Fix.
  • Loading branch information
donald committed Feb 12, 2025
1 parent 3ed605d commit c9e6272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpicms/templates/personal/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit c9e6272

Please sign in to comment.