From: deb.monish Date: Tue, 9 Feb 2016 11:21:57 +0000 (+0530) Subject: CRM-17831 fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0c4b273ee128cd2c96d22a22b52afc5b44ef2b50;p=civicrm-core.git CRM-17831 fix --- diff --git a/CRM/Contact/Form/Edit/Individual.php b/CRM/Contact/Form/Edit/Individual.php index 5176b148ae..7fa39fe910 100644 --- a/CRM/Contact/Form/Edit/Individual.php +++ b/CRM/Contact/Form/Edit/Individual.php @@ -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); diff --git a/xml/schema/Contact/Contact.xml b/xml/schema/Contact/Contact.xml index bcf7c8f385..b1c570bff9 100644 --- a/xml/schema/Contact/Contact.xml +++ b/xml/schema/Contact/Contact.xml @@ -477,6 +477,9 @@ varchar 64 true + + Text + /^title/i Formal (academic or similar) title in front of name. (Prof., Dr. etc.) 4.5