Skip to content

Commit

Permalink
Fix for invalid array to string conversion in symbiote/silverstripe-g…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Prins authored Aug 24, 2022
1 parent 4e65c1f commit 6e3b939
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Pages/ArticlePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ class ArticlePage extends \Page
];

/**
* @var array
* @var string
*/
private static $default_sort = [
'PublicationDate' => 'DESC',
];
private static $default_sort = 'PublicationDate DESC';


public function getCMSFields(): FieldList
{
Expand Down

0 comments on commit 6e3b939

Please sign in to comment.