Merge pull request #46 from sekjal/setForm

Set Form for formField when validating
This commit is contained in:
Damian Mooyman 2016-03-07 14:01:50 +13:00
commit 73bdcd9f7f

View File

@ -142,6 +142,7 @@ if (class_exists('EditableFormField')) {
public function validateField($data, $form) public function validateField($data, $form)
{ {
$formField = $this->getFormField(); $formField = $this->getFormField();
$formField->setForm($form);
if (isset($data[$this->Name])) { if (isset($data[$this->Name])) {
$formField->setValue($data[$this->Name]); $formField->setValue($data[$this->Name]);