CRM-17831 fix
authordeb.monish <monish.deb@webaccessglobal.com>
Tue, 9 Feb 2016 11:21:57 +0000 (16:51 +0530)
committerdeb.monish <monish.deb@webaccessglobal.com>
Tue, 9 Feb 2016 11:21:57 +0000 (16:51 +0530)
CRM/Contact/Form/Edit/Individual.php
xml/schema/Contact/Contact.xml

index 5176b148aeb65191046aa9291f9f67ad21579dd5..7fa39fe910d56635ac3cd98f1d1e781d3c92e60a 100644 (file)
@@ -71,11 +71,7 @@ class CRM_Contact_Form_Edit_Individual {
       foreach ($nameFields as $name) {
         $props = array();
         if ($name == 'prefix_id' || $name == 'suffix_id') {
-          $options = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', $name);
-          // Skip if we have no options available
-          if (!CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', $name)) {
-            //continue;
-          }
+          //override prefix/suffix label name as Prefix/Suffix respectively and adjust select size
           $props = array('class' => 'eight', 'placeholder' => ' ', 'label' => $name == 'prefix_id' ? ts('Prefix') : ts('Suffix'));
         }
         $form->addField($name, $props);
index bcf7c8f3855869528500bb094bfd7c4d828ef227..b1c570bff9a78aef8a2cc5ee510905365aa2754d 100644 (file)
     <type>varchar</type>
     <length>64</length>
     <import>true</import>
+    <html>
+      <type>Text</type>
+    </html>
     <headerPattern>/^title/i</headerPattern>
     <comment>Formal (academic or similar) title in front of name. (Prof., Dr. etc.)</comment>
     <add>4.5</add>