mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: restored deleted action
This commit is contained in:
parent
703a62cd7f
commit
d4d53acf40
@ -380,11 +380,15 @@ class UserDefinedForm_Controller extends Page_Controller {
|
|||||||
$submittedField->Value = "";
|
$submittedField->Value = "";
|
||||||
}
|
}
|
||||||
$submittedField->write();
|
$submittedField->write();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elseif($field->hasMethod('getValueFromData')) {
|
||||||
|
$values[$field->Title] = Convert::linkIfMatch($field->getValueFromData($data));
|
||||||
|
} else {
|
||||||
|
if(isset($data[$field->Name])) $values[$field->Title] = Convert::linkIfMatch($data[$field->Name]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$emailData = array(
|
$emailData = array(
|
||||||
"Sender" => Member::currentUser(),
|
"Sender" => Member::currentUser(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user