From b979b3869413c8e63a6181b9a72ddfcedb88a53c Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 21 Oct 2015 08:14:39 +1300 Subject: [PATCH] FIX: #138 allow subsite summary fields to be customized --- code/model/Subsite.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/code/model/Subsite.php b/code/model/Subsite.php index e5f8182..ca77cca 100644 --- a/code/model/Subsite.php +++ b/code/model/Subsite.php @@ -67,6 +67,15 @@ class Subsite extends DataObject { */ public static $check_is_public = true; + /** + * @return array + */ + private static $summary_fields = array( + 'Title', + 'PrimaryDomain', + 'IsPublic' + ); + /** * Set allowed themes * @@ -608,18 +617,6 @@ class Subsite extends DataObject { return $labels; } - - /** - * - * @return array - */ - public function summaryFields() { - return array( - 'Title' => $this->fieldLabel('Title'), - 'PrimaryDomain' => $this->fieldLabel('PrimaryDomain'), - 'IsPublic' => _t('Subsite.IsPublicHeaderField','Active subsite'), - ); - } /** * Return the themes that can be used with this subsite, as an array of themecode => description