MT#59363 retain trailing+leading wildcard for legacy panel only

all api query param filters that were harmonized to "wildcard"
also appended leading+trailing wildcard (this was from the original
idea to make adminUI and legacy panel search behave the same).

Change-Id: I017473b84f2844d14a11b4ec8b437df5335c24d0
(cherry picked from commit aa6760228e)
mr10.5
Rene Krenn 1 year ago
parent 3d476c4f77
commit 8a4407845b

@ -2094,7 +2094,9 @@ sub wildcard_search {
$search_value = $search_string;
} else {
$op = 'like';
$search_value = '%' . $search_string_escaped . '%';
unless ($c->request->path =~/^api\//i) {
$search_value = '%' . $search_string_escaped . '%';
}
}
$op = $comparison_op if (defined $comparison_op);
$search_value = $convert_code->($search_string) if (ref $convert_code eq 'CODE');

Loading…
Cancel
Save