forked from Wavyzz/dolibarr
QUAL: Remove use of customurl filter. Must use the USF syntax.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user