BUGFIX: updated editabletextfield to new userfield api

This commit is contained in:
Will Rossiter 2009-05-10 23:26:22 +00:00
parent 10d5f41f24
commit 5588646af3

View File

@ -12,7 +12,8 @@ class EditableTextField extends EditableFormField {
static $plural_name = 'Text fields'; static $plural_name = 'Text fields';
function ExtraOptions() { function getFieldConfiguration() {
$fields = parent::getFieldConfiguration();
// eventually replace hard-coded "Fields"? // eventually replace hard-coded "Fields"?
$baseName = "Fields[$this->ID]"; $baseName = "Fields[$this->ID]";
@ -31,8 +32,8 @@ class EditableTextField extends EditableFormField {
new TextField($baseName . "[CustomSettings][Rows]", _t('EditableTextField.NUMBERROWS', 'Number of rows'), $rows) new TextField($baseName . "[CustomSettings][Rows]", _t('EditableTextField.NUMBERROWS', 'Number of rows'), $rows)
); );
$extraFields->merge(parent::ExtraOptions()); $fields->merge($extraFields);
return $extraFields; return $fields;
} }
function getFormField() { function getFormField() {