fixes #1557 removed %% in front and escaped groups for mysql8

This commit is contained in:
Matthieu Leproux
2021-11-15 13:20:22 +01:00
parent 438d0c1269
commit 74153db445
2 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -1519,7 +1519,9 @@ function update_user_list() {
per_page: per_page,
exclude: [guest_id]
}
update_data["filter"] = "%" + $("#user_search").val() + "%";
if ($("#user_search").val().length != 0) {
update_data["filter"] = $("#user_search").val();
}
if ($("#advanced-filter-container").css("display") !== "none") {
update_data["status"] = $(".advanced-filter-select[name=filter_status]").val();
update_data["group_id"] = $(".advanced-filter-select[name=filter_group]").val();