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

Update MenuLink.php #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

obj63mc
Copy link

@obj63mc obj63mc commented Aug 16, 2022

Currently if on php 8.1 and the latest version of SS - Line 370 in /app/vendor/symbiote/silverstripe-gridfieldextensions/src/GridFieldOrderableRows.php throws an error as the sort is expected to be a string. Setting to a default convention which will work. See - symbiote/silverstripe-gridfieldextensions#344 for more details

Currently if on php 8.1 and the latest version of SS - Line 370 in /app/vendor/symbiote/silverstripe-gridfieldextensions/src/GridFieldOrderableRows.php throws an error as the sort is expected to be a string.  Setting to a default convention which will work.  See - symbiote/silverstripe-gridfieldextensions#344 for more details
@baukezwaan
Copy link

Would be nice to see this one merged... would have saved me some pain, finding out what was wrong.

For now we have fixed it in our project, by changing the default_sort via the menu.yml

gorriecoe\Menu\Models\MenuLink:
  default_sort: 'Sort ASC'

@michalkleiner
Copy link

@gorriecoe pretty please?

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

Successfully merging this pull request may close these issues.

None yet

3 participants