MINOR: Removed unused property, CustomParamater

MONOR: Add ShowOnLoad in db static so when we decorate it with Versioned the version tables will be created properly
This commit is contained in:
Saophalkun Ponlu 2009-08-11 04:42:50 +00:00
parent c0a59a7bf3
commit af74b843cf

View File

@ -18,7 +18,8 @@ class EditableFormField extends DataObject {
"CanDelete" => "Boolean",
"CustomErrorMessage" => "Varchar(255)",
"CustomRules" => "Text",
"CustomSettings" => "Text"
"CustomSettings" => "Text",
"ShowOnLoad" => "Boolean"
);
static $defaults = array(
@ -258,7 +259,6 @@ class EditableFormField extends DataObject {
$this->Title = (isset($data['Title'])) ? $data['Title']: "";
$this->Default = (isset($data['Default'])) ? $data['Default'] : "";
$this->Sort = (isset($data['Sort'])) ? $data['Sort'] : null;
$this->CustomParameter = isset($data['CustomParameter']) ? $data['CustomParameter'] : null;
$this->Required = !empty($data['Required']) ? 1 : 0;
$this->CanDelete = (isset($data['CanDelete']) && !$data['CanDelete']) ? 0 : 1;
$this->Name = $this->class.$this->ID;