Skip to content

Commit

Permalink
Update MenuLink.php
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Joe Madden committed Aug 16, 2022
1 parent 7515601 commit a9c3758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/MenuLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class MenuLink extends Link
* Default sort ordering
* @var array
*/
private static $default_sort = ['Sort' => 'ASC'];
private static $default_sort = 'Sort ASC';

/**
* CMS Fields
Expand Down

0 comments on commit a9c3758

Please sign in to comment.