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

Remove default order by id desc when a scope sets an specific order #34

Closed
silva96 opened this issue Jan 5, 2022 · 1 comment
Closed

Comments

@silva96
Copy link

silva96 commented Jan 5, 2022

Currently I have a scope on Posts called "most_commented" which orders by comments_count desc but when selecting that scope in the admin panel, it prepends an order by id desc before so giving precedence to the actual selected scope.

I can click on the id column and it takes away the default id order. ButI have to do it everytime for every sope that has an order.

@omohokcoj
Copy link
Member

@silva96 it has been fixed in the latest release:
https://rubygems.org/gems/motor-admin
btw you can report rails-related issues in motor-admin-rails repo

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