From af6f499cacf9895ecff9c9128845da3a9c859b3e Mon Sep 17 00:00:00 2001 From: Garion Herman Date: Mon, 28 Aug 2017 22:05:01 +1200 Subject: [PATCH] Add non-blank default to ThemeFieldEmptyString translation. --- code/model/Subsite.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/model/Subsite.php b/code/model/Subsite.php index 154d649..76bcc74 100644 --- a/code/model/Subsite.php +++ b/code/model/Subsite.php @@ -713,7 +713,8 @@ class Subsite extends DataObject $themes = $this->allowedThemes(); if (!empty($themes)) { $fields->addFieldToTab('Root.Configuration', - DropdownField::create('Theme', $this->fieldLabel('Theme'), $this->allowedThemes(), $this->Theme)->setEmptyString(_t('Subsite.ThemeFieldEmptyString', '')), 'PageTypeBlacklistToggle'); + DropdownField::create('Theme', $this->fieldLabel('Theme'), $this->allowedThemes(), $this->Theme) + ->setEmptyString(_t('Subsite.ThemeFieldEmptyString', '-')), 'PageTypeBlacklistToggle'); } $subsiteTabs->addExtraClass('subsite-model');