mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #46 from sekjal/setForm
Set Form for formField when validating
This commit is contained in:
commit
73bdcd9f7f
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user