From 72061e8cefc03d12264c006dfd90cb1ee5310d3e Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 9 Jul 2022 20:06:54 +0200 Subject: Fix payment search by sub word It tried to search for exact words, minus accents and case. Use the same method that was successfully working when searching a category. --- src/utils/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/text.rs b/src/utils/text.rs index c07ccee..3a6f495 100644 --- a/src/utils/text.rs +++ b/src/utils/text.rs @@ -1,5 +1,5 @@ pub fn format_search(str: &String) -> String { - unaccent(&str.to_lowercase()) + format!("%{}%", unaccent(&str.to_lowercase())) } pub fn unaccent(str: &String) -> String { -- cgit v1.2.3