mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: removed code to reference the editor from the form field
This commit is contained in:
parent
e24cd75b21
commit
fa21900504
@ -35,32 +35,8 @@ class EditableFormField extends DataObject {
|
||||
"Versioned('Stage', 'Live')"
|
||||
);
|
||||
|
||||
/**
|
||||
* @var FieldEditor The current editor
|
||||
*/
|
||||
protected $editor;
|
||||
|
||||
protected $readonly;
|
||||
|
||||
/**
|
||||
* Construct a new EditableFormField Object.
|
||||
*
|
||||
* @param array|null $record This will be null for a new database record.
|
||||
* @param boolean $isSingleton This this to true if this is a singleton() object, a stub for calling methods.
|
||||
*/
|
||||
public function __construct($record = null, $isSingleton = false) {
|
||||
parent::__construct($record, $isSingleton);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the FieldEditor object for this field.
|
||||
*
|
||||
* @param FieldEditor The Editor window you wish to use
|
||||
*/
|
||||
public function setEditor($editor) {
|
||||
$this->editor = $editor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set this formfield to readonly
|
||||
*/
|
||||
|
@ -65,13 +65,10 @@ class FieldEditor extends FormField {
|
||||
$fields->push($field->performReadonlyTransformation());
|
||||
}
|
||||
}
|
||||
$field->setEditor($this);
|
||||
}
|
||||
}
|
||||
return $fields;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user