mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
added functionality to submitted form field allowing it to find the equivalent editable form field
This commit is contained in:
parent
b75fc3c51e
commit
958e68b0df
@ -78,4 +78,9 @@ class SubmittedFormField extends DataObject {
|
|||||||
public function getExportValue() {
|
public function getExportValue() {
|
||||||
return $this->Value;
|
return $this->Value;
|
||||||
}
|
}
|
||||||
|
public function getEditableField() {
|
||||||
|
return $this->Parent()->Parent()->Fields()->filter(array(
|
||||||
|
'Name' => $this->Name
|
||||||
|
))->First();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user