mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: updated editabletextfield to new userfield api
This commit is contained in:
parent
10d5f41f24
commit
5588646af3
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user