fix missing translation (#33665)

This commit is contained in:
Frédéric FRANCE
2025-03-31 15:56:57 +02:00
committed by GitHub
parent 0b445fa04a
commit eb3032fdce
2 changed files with 1 additions and 2 deletions

View File

@@ -236,7 +236,6 @@ Datee
Dateo
Dates
Datet
DecimalSeparator
Declared
Decline
DefaultCashPOSLabel

View File

@@ -12084,7 +12084,7 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0)
$value = preg_replace('/\*/', '%', $value); // Replace * with %
}
if ($mode == 1) {
$value = preg_replace('/([!<>=]+)\s+([0-9'.preg_quote($langs->trans("DecimalSeparator"), '/').'\-])/', '\1\2', $value); // Clean string '< 10' into '<10' so we can then explode on space to get all tests to do
$value = preg_replace('/([!<>=]+)\s+([0-9'.preg_quote($langs->trans("SeparatorDecimal"), '/').'\-])/', '\1\2', $value); // Clean string '< 10' into '<10' so we can then explode on space to get all tests to do
}
$value = preg_replace('/\s*\|\s*/', '|', $value);