2
0
forked from Wavyzz/dolibarr

QUAL: Remove use of customurl filter. Must use the USF syntax.

This commit is contained in:
Laurent Destailleur
2024-03-05 03:51:36 +01:00
parent 847c7a73c8
commit c544efec7f
62 changed files with 402 additions and 495 deletions

View File

@@ -12719,6 +12719,7 @@ function forgeSQLFromUniversalSearchCriteria($filter, &$errorstr = '', $noand =
$t = preg_replace_callback('/'.$regexstring.'/i', 'dolForgeDummyCriteriaCallback', $filter);
$t = str_replace(array('and','or','AND','OR',' '), '', $t); // Remove the only strings allowed between each () criteria
// If the string result contains something else than '()', the syntax was wrong
if (preg_match('/[^\(\)]/', $t)) {
$tmperrorstr = 'Bad syntax of the search string';
$errorstr = 'Bad syntax of the search string: '.$filter;