Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Filtering records with association is blank generates invalid SQL #2995

Closed
PikachuEXE opened this issue Mar 5, 2018 · 1 comment
Closed

Comments

@PikachuEXE
Copy link
Contributor

Env

rails_admin 1.3.0

Filters selected

screen shot 2018-03-05 at 1 53 44 pm

Query params

screen shot 2018-03-05 at 1 54 04 pm

SQL

SELECT  "buildings".* FROM "buildings" WHERE ((buildings.name_en ILIKE 'Name')) AND ((buildings.original_building_id IS NULL OR buildings.original_building_id = '')) ORDER BY buildings.id desc LIMIT $1 OFFSET $2
@PikachuEXE
Copy link
Contributor Author

Anyone?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant