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
Relational sorting issue #2283
Comments
Problem exists and from here: laravel-admin/src/Grid/Model.php Line 540 in 1320bf4
Before this code need add
its fix set equal fields from relation to eloquent model. |
pr merged, Thanks! |
never615
added a commit
to never615/laravel-admin
that referenced
this issue
Oct 18, 2018
…elop * 'master' of github.com:z-song/laravel-admin: (119 commits) Change Skin url [fix]Fix issue z-song#2615 Fix relation sort (issue z-song#2283) Apply fixes from StyleCI [fix] [fix] Add a config to control default breadcrumb cs fix Styleci fix Better SSL support, removed # fix z-song#1768 Add default breadcrumb fix [fix]Use content header as page sub title 没啥好办法,增加一个配置项 Menu模型添加属性以防旧版本用户升级后无permission字段报错 [fix] Update README.md [skip ci] [fix] Apply fixes from StyleCI [fix]Fix issue z-song#2581 [refactor] ... # Conflicts: # src/Console/InstallCommand.php
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have 2 tables:
users
andactivities
. Both has the name field.My
grid
function ofActivityController
looks like this:When I sort by
name
it works fineBut when I sort by
Owner
the name field replaced by name of theOwner
Is there anyone has this problem?
The text was updated successfully, but these errors were encountered: