diff --git a/code/editor/EditableFormField.php b/code/editor/EditableFormField.php index ff66ca4..b857f79 100755 --- a/code/editor/EditableFormField.php +++ b/code/editor/EditableFormField.php @@ -18,8 +18,7 @@ class EditableFormField extends DataObject { "CanDelete" => "Boolean", "CustomErrorMessage" => "Varchar(255)", "CustomRules" => "Text", - "CustomSettings" => "Text", - "ShowOnLoad" => "Boolean" + "CustomSettings" => "Text" ); static $defaults = array( @@ -86,7 +85,7 @@ class EditableFormField extends DataObject { * * @return bool */ - function ShowOnLoad() { + function getShowOnLoad() { return ($this->getSetting('ShowOnLoad') == "Show" || $this->getSetting('ShowOnLoad') == '') ? true : false; } diff --git a/templates/EditableFormField.ss b/templates/EditableFormField.ss index ee8547d..2602f6d 100755 --- a/templates/EditableFormField.ss +++ b/templates/EditableFormField.ss @@ -73,7 +73,7 @@
  • <% _t('ADDRULE', 'Add Rule') %>
  • -
  • +