From 6e3b9392b03c5ec7cf6fffb1338d51d4ac5671d6 Mon Sep 17 00:00:00 2001 From: Dennis Prins Date: Wed, 24 Aug 2022 19:40:57 +0200 Subject: [PATCH] Fix for invalid array to string conversion in symbiote/silverstripe-gridfieldextensions See https://github.com/symbiote/silverstripe-gridfieldextensions/issues/344 --- src/Pages/ArticlePage.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Pages/ArticlePage.php b/src/Pages/ArticlePage.php index 61e36ea..7fd7b88 100755 --- a/src/Pages/ArticlePage.php +++ b/src/Pages/ArticlePage.php @@ -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 {