From c1488e15fa7f267a36f7d65e6cff44d136afdd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Thu, 12 Oct 2023 18:41:57 +0200 Subject: [PATCH] bad internal filter with forgeSQLFromUniversalSearchCriteria (#26202) the filter (s.client:in:(1,2)) not work, same problem with s.client in (1,2) we need to use now : (s.client:in:1,2) --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 0420e4a3cf2..fb74ae7fdb8 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1376,7 +1376,7 @@ class Form * @param string $selected Preselected type * @param string $htmlname Name of field in form * @param string $filter Optional filters criteras. WARNING: To avoid SQL injection, only few chars [.a-z0-9 =<>] are allowed here, example: 's.rowid <> x' - * If you need parenthesis, use the Universal Filter Syntax, example: '(s.client:in:(1,3))' + * If you need parenthesis, use the Universal Filter Syntax, example: '(s.client:in:1,3)' * Do not use a filter coming from input of users. * @param string $showempty Add an empty field (Can be '1' or text to use on empty line like 'SelectThirdParty') * @param int $showtype Show third party type in combolist (customer, prospect or supplier)