-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX_forgeSQLFromUniversalSearchCriteria was unusable #26921
FIX_forgeSQLFromUniversalSearchCriteria was unusable #26921
Conversation
Can you provide an example of a case that was not working. |
I am using version 18.x and found issues when trying to use "Form::select_thirdparty_list" with ajax select2.
I tried updating the filter to "( s.client IN (1,2,3) )" and get the same error. I see two(2) issues here: |
Additional example from v18 $object->fields['fk_project'] = array('type'=>'integer:Project:projet/class/project.class.php:1:fk_soc='.$thirdparty_soc_id, 'label'=>'Project', 'picto'=>'project', 'enabled'=>'$conf- >project->enabled', 'position'=>52, 'notnull'=>-1, 'visible'=>-1, 'index'=>1, 'css'=>'maxwidth500 widthcentpercentminusxx', 'validate'=>'1',); Here it is rejecting the filter "fk_soc=123" with the error "Bad syntax of the search string" |
Promote modification from Pull request Dolibarr#26921 to v18 to resolve issues related to Issue breaking project and third-party dropdowns with reasonably acceptable filters that fail this test.
The string syntax for filter looks wrong. |
@eldy maybe add IN in this function ? ;-) ((s.client:IN:1,2,3) AND (s.status:=:1)) |
@eldy c'est pas déjà pris en charge d'ailleurs ?
|
Je crois que si... |
@eldy arrête de parler français on va se faire engueuler ! ;-) |
Thank you! We will try this. |
Je m'excuse de ne pas avoir tenté de poser ma question en français. :-( |
@carmelchas tu as bien fait de ne pas parler français ! ;-) c'était un joke ! il est préférable de parler anglais... voir américain ! ;-) |
Lol.
…On Thu, Mar 14, 2024 at 8:22 PM Regis Houssin ***@***.***> wrote:
@carmelchas <https://github.com/carmelchas> tu as bien fait de ne pas
parler français ! ;-) c'était un joke ! il est préférable de parler
anglais... voir américain ! ;-)
—
Reply to this email directly, view it on GitHub
<#26921 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADMYZ7VOTV4ILJ37GZVZ7DYYJEO5AVCNFSM6AAAAABACWC3DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJYG4ZTEMJRGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
forgeSQLFromUniversalSearchCriteria was unusable