Skip to content
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

Problem query result with "search query plugin 1.4.0" #41

Open
GBob1789 opened this issue Sep 12, 2017 · 1 comment
Open

Problem query result with "search query plugin 1.4.0" #41

GBob1789 opened this issue Sep 12, 2017 · 1 comment

Comments

@GBob1789
Copy link

Hello
I do a new issue because this one : Octopoos/SEBLOD#322 is closed

the problem is still there with the 1.51.

but I must add some explanations: the problem only appears when one of the fields is empty. If there is a value in each field it works well.
In version 1.30 the final query was ... like '%%' and like '%%' ... if my field was empty, which returned all the result. Since version 1.40 the final request is: ... and () ... and (). This generates an SQL error.

forum : https://www.seblod.com/community/forums/fields-plug-ins/problem-query-result-with-search-query-plugin-1-4-0

Best regards
G.Bob

@klas
Copy link
Contributor

klas commented Sep 28, 2017

Confirmed - matching is not fixed with 1.5.1:

From this
WHERE [MATCH]menutype||$uri->get('component_type_select_multiple')[/MATCH]
I get WHERE (((menutype LIKE '%17%'))) when value is selected - also notice 3 (((

When there is no value selected I get en error as it is WHERE ().

Also matching seems to be taken from sql search field, not from field beeing searched on (not sure whether this iabug or feature..)

@sebastienheraud sebastienheraud transferred this issue from Octopoos/SEBLOD Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants