mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: fixed truncation of multiple emails or long emails
This commit is contained in:
parent
170420f9f8
commit
daac87acee
@ -13,7 +13,7 @@ class UserDefinedForm extends Page {
|
|||||||
static $need_permission = 'ADMIN';
|
static $need_permission = 'ADMIN';
|
||||||
|
|
||||||
static $db = array(
|
static $db = array(
|
||||||
"EmailTo" => "Varchar",
|
"EmailTo" => "Varchar(255)",
|
||||||
"EmailOnSubmit" => "Boolean",
|
"EmailOnSubmit" => "Boolean",
|
||||||
"SubmitButtonText" => "Varchar",
|
"SubmitButtonText" => "Varchar",
|
||||||
"OnCompleteMessage" => "HTMLText",
|
"OnCompleteMessage" => "HTMLText",
|
||||||
@ -310,6 +310,7 @@ class UserDefinedForm_Controller extends Page_Controller {
|
|||||||
|
|
||||||
$attachments = array();
|
$attachments = array();
|
||||||
|
|
||||||
|
|
||||||
$submittedFields = new DataObjectSet();
|
$submittedFields = new DataObjectSet();
|
||||||
foreach( $this->Fields() as $field ) {
|
foreach( $this->Fields() as $field ) {
|
||||||
$submittedField = new SubmittedFormField();
|
$submittedField = new SubmittedFormField();
|
||||||
|
@ -10,7 +10,7 @@ class SubmittedForm extends DataObject {
|
|||||||
);
|
);
|
||||||
|
|
||||||
static $db = array(
|
static $db = array(
|
||||||
"Recipient" => "Varchar"
|
"Recipient" => "Varchar(255)"
|
||||||
);
|
);
|
||||||
|
|
||||||
static $has_many = array(
|
static $has_many = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user