Add onPopulateFromPostData hook to match EditableFormField

This commit is contained in:
Will Rossiter 2015-06-23 12:06:05 +12:00
parent 11dfa1e3ad
commit 17bc3bce93

View File

@ -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();
}