mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Add onPopulateFromPostData hook to match EditableFormField
This commit is contained in:
parent
11dfa1e3ad
commit
17bc3bce93
@ -78,6 +78,8 @@ class EditableOption extends DataObject {
|
||||
$this->Title = (isset($data['Title'])) ? $data['Title'] : "";
|
||||
$this->Default = (isset($data['Default'])) ? $data['Default'] : "";
|
||||
$this->Sort = (isset($data['Sort'])) ? $data['Sort'] : 0;
|
||||
|
||||
$this->extend('onPopulateFromPostData', $data);
|
||||
$this->write();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user