From b7f1c66de71045e5e22f08fc936e95a7641fa45b Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Fri, 15 Nov 2013 09:47:44 +1300 Subject: [PATCH] Make SubsiteDomain#getCMSFields extendable --- code/model/SubsiteDomain.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/model/SubsiteDomain.php b/code/model/SubsiteDomain.php index 8714c04..e7bf589 100644 --- a/code/model/SubsiteDomain.php +++ b/code/model/SubsiteDomain.php @@ -26,10 +26,12 @@ class SubsiteDomain extends DataObject { } public function getCMSFields() { - return new FieldList( + $fields = new FieldList( new TextField('Domain', $this->fieldLabel('Domain'), null, 255), new CheckboxField('IsPrimary', $this->fieldLabel('IsPrimary')) ); + $this->extend('updateCMSFields', $fields); + return $fields; } public function fieldLabels($includerelations = true) {