Skip to content

Commit

Permalink
Merge branch '3.0' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Sep 23, 2016
2 parents ca2a6a3 + dec9356 commit eed799d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions code/model/editableformfields/EditableFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion code/model/editableformfields/EditableFormHeading.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function getCMSFields() {
}

public function getFormField() {
$labelField = new HeaderField($this->Name, $this->EscapedTitle, $this->Level);
$labelField = HeaderField::create($this->EscapedTitle)
->setHeadingLevel($this->Level);
$labelField->addExtraClass('FormHeading');
$labelField->setAttribute('data-id', $this->Name);
$this->doUpdateFormField($labelField);
Expand Down

0 comments on commit eed799d

Please sign in to comment.