added functionality to submitted form field allowing it to find the equivalent editable form field

This commit is contained in:
John Milmine 2014-05-23 15:55:53 +12:00
parent b75fc3c51e
commit 958e68b0df

View File

@ -78,4 +78,9 @@ class SubmittedFormField extends DataObject {
public function getExportValue() {
return $this->Value;
}
public function getEditableField() {
return $this->Parent()->Parent()->Fields()->filter(array(
'Name' => $this->Name
))->First();
}
}