From 0c4b273ee128cd2c96d22a22b52afc5b44ef2b50 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 9 Feb 2016 16:51:57 +0530 Subject: [PATCH] CRM-17831 fix --- CRM/Contact/Form/Edit/Individual.php | 6 +----- xml/schema/Contact/Contact.xml | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) 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 -- 2.25.1