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

Filters on listpages dont work with enums #4

Open
damn opened this issue Dec 11, 2015 · 4 comments
Open

Filters on listpages dont work with enums #4

damn opened this issue Dec 11, 2015 · 4 comments

Comments

@damn
Copy link

damn commented Dec 11, 2015

I tried putting the id, lowercase enum-string, .. didnt work.
I mean the rails_admin list pages.

@moskvin
Copy link
Member

moskvin commented Dec 11, 2015

Can you specify rails and ruby versions?

@damn
Copy link
Author

damn commented Dec 12, 2015

ruby 2.2.3
rails 4.2.1

@damn
Copy link
Author

damn commented Dec 12, 2015

For example when adding a filter for a string field, it is possible to choose in a dropdown menu:

Is exactly, Starts with, ends with, ... etc.

For enum fields, there is no dropdown at all. So something is missing there.

I also just tried with rails 4.2.5, same thing.

@damn
Copy link
Author

damn commented Dec 12, 2015

Here is the switch for setting the 'enum' filter:

https://github.com/sferik/rails_admin/blob/master/app/assets/javascripts/rails_admin/ra.filter-box.js#L54

When using rails_admin_enum4 the field_type is 'enum4' and does not match anything here.

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

No branches or pull requests

2 participants