From: deb.monish Date: Mon, 25 Jul 2016 17:28:42 +0000 (+0530) Subject: CRM-17608: increase maxlength of file element X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1f46c1b9433dfa5f6ba2d6c796e57c9a52692089;p=civicrm-core.git CRM-17608: increase maxlength of file element --- diff --git a/CRM/Admin/Form/MessageTemplates.php b/CRM/Admin/Form/MessageTemplates.php index e269bd6d10..964dc953e0 100644 --- a/CRM/Admin/Form/MessageTemplates.php +++ b/CRM/Admin/Form/MessageTemplates.php @@ -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', diff --git a/CRM/Contact/Form/Task/PDFLetterCommon.php b/CRM/Contact/Form/Task/PDFLetterCommon.php index 214afdbad5..0bb334e6a7 100644 --- a/CRM/Contact/Form/Task/PDFLetterCommon.php +++ b/CRM/Contact/Form/Task/PDFLetterCommon.php @@ -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);