Skip to content
Snippets Groups Projects
Commit 3a6b1049 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

fixes for CRM-14064

----------------------------------------
* CRM-14064: Uploading content for mailing results in empty message text and subject line
  http://issues.civicrm.org/jira/browse/CRM-14064
parent 93c071bc
No related branches found
No related tags found
No related merge requests found
......@@ -258,11 +258,13 @@ class CRM_Mailing_Form_Upload extends CRM_Core_Form {
CRM_Mailing_BAO_Mailing::commonCompose($this);
$this->addElement('file', 'textFile', ts('Upload TEXT Message'), 'size=30 maxlength=60');
$this->addUploadElement('textFile');
$this->setMaxFileSize(1024 * 1024);
$this->addRule('textFile', ts('File size should be less than 1 MByte'), 'maxfilesize', 1024 * 1024);
$this->addRule('textFile', ts('File must be in UTF-8 encoding'), 'utf8File');
$this->addElement('file', 'htmlFile', ts('Upload HTML Message'), 'size=30 maxlength=60');
$this->addUploadElement('htmlFile');
$this->setMaxFileSize(1024 * 1024);
$this->addRule('htmlFile',
ts('File size should be less than %1 MByte(s)',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment