cleanup File in schema
authorTim Mallezie <tim.mallezie@chiro.be>
Tue, 31 Mar 2015 07:32:18 +0000 (09:32 +0200)
committerTim Mallezie <tim.mallezie@chiro.be>
Tue, 31 Mar 2015 07:32:18 +0000 (09:32 +0200)
CRM/Contact/Form/Contact.php
xml/schema/Contact/Contact.xml

index b580b76a48fe2da09754a78a06cd66576e55f9ba..20bbbe39d813a0915926861eefd81c5cd02ebb35 100644 (file)
@@ -818,7 +818,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
     CRM_Contact_Form_Location::buildQuickForm($this);
 
     // add attachment
-    $this->addField('image_URL', array('type' => 'File', 'size' => '30', 'maxlength' => '60', 'label' => ts('Browse/Upload Image')));
+    $this->addField('image_URL', array('maxlength' => '60', 'label' => ts('Browse/Upload Image')));
 
     // add the dedupe button
     $this->addElement('submit',
index f90a154c0ba8d375976bbfdea223baec3c27bd1f..d8c78e8d369c1c11bf6563a9b94cb933b2514b80 100644 (file)
     <comment>optional URL for preferred image (photo, logo, etc.) to display for this contact.</comment>
     <add>1.1</add>
     <html>
-      <type>Text</type>
+      <type>File</type>
+      <size>BIG</size>
     </html>
   </field>
   <field>