CRM-17608: increase maxlength of file element
authordeb.monish <monish.deb@webaccessglobal.com>
Mon, 25 Jul 2016 17:28:42 +0000 (22:58 +0530)
committerdeb.monish <monish.deb@webaccessglobal.com>
Mon, 25 Jul 2016 17:28:42 +0000 (22:58 +0530)
CRM/Admin/Form/MessageTemplates.php
CRM/Contact/Form/Task/PDFLetterCommon.php

index e269bd6d100c0293230957ede2cca369f96f0885..964dc953e0fecd7c027d5607c71b0443233e48a7 100644 (file)
@@ -175,7 +175,7 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form {
       $element->freeze();
     }
 
-    $this->addElement('file', "file_id", ts('Upload Document'), 'size=30 maxlength=60');
+    $this->addElement('file', "file_id", ts('Upload Document'), 'size=30 maxlength=255');
     $this->addUploadElement("file_id");
 
     $this->add('text', 'msg_subject',
index 214afdbad55aa79a076d46ba6808570a56114a71..0bb334e6a7f448d9efa9e009cc303f02755c69c5 100644 (file)
@@ -170,7 +170,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
     $form->add('select', 'document_type', ts('Document Type'), CRM_Core_SelectValues::documentFormat());
 
     $documentTypes = implode(',', CRM_Core_SelectValues::documentApplicationType());
-    $form->addElement('file', "document_file", 'Upload Document', 'size=30 maxlength=60 accept="' . $documentTypes . '"');
+    $form->addElement('file', "document_file", 'Upload Document', 'size=30 maxlength=255 accept="' . $documentTypes . '"');
     $form->addUploadElement("document_file");
 
     CRM_Mailing_BAO_Mailing::commonCompose($form);