From 0547a0191201d203411d52c15ab1b5243283825d Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 28 Apr 2016 11:09:25 +0200 Subject: [PATCH 1/2] By default, now form fields should be shown Having to click through 2 levels of property settings to make a new form field visible seems a bit much ... or else I have not found the configuration setting for this. --- code/model/editableformfields/EditableFormField.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/model/editableformfields/EditableFormField.php b/code/model/editableformfields/EditableFormField.php index 1f37ed7..f3faf13 100755 --- a/code/model/editableformfields/EditableFormField.php +++ b/code/model/editableformfields/EditableFormField.php @@ -81,6 +81,11 @@ class EditableFormField extends DataObject { "RightTitle" => "Varchar(255)", // from CustomSettings "ShowOnLoad" => "Boolean(1)", // from CustomSettings ); + + private static $defaults = array( + 'ShowOnLoad' => true, + ); + /** * @config From 88509291d3ea801fbdd08db2b7c2833ae46ca750 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Fri, 29 Apr 2016 14:15:01 +0200 Subject: [PATCH 2/2] fixed indentation --- code/model/editableformfields/EditableFormField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/model/editableformfields/EditableFormField.php b/code/model/editableformfields/EditableFormField.php index f3faf13..cc86179 100755 --- a/code/model/editableformfields/EditableFormField.php +++ b/code/model/editableformfields/EditableFormField.php @@ -83,8 +83,8 @@ class EditableFormField extends DataObject { ); private static $defaults = array( - 'ShowOnLoad' => true, - ); + 'ShowOnLoad' => true, + ); /**