From b890bee33e49c16111e78703445b6df9a62ce72b Mon Sep 17 00:00:00 2001 From: Olaf Buddenhagen Date: Thu, 10 Oct 2013 16:17:45 +0200 Subject: [PATCH] Revert "Make `formal_title` field optional" This reverts commit 5b5217d75b850748f19707387b65806831acf670. In preparation for more generic name field configurability. --- CRM/Admin/Form/Preferences/Display.php | 5 ----- CRM/Contact/Form/Edit/Individual.php | 4 +--- settings/Core.setting.php | 14 -------------- templates/CRM/Admin/Form/Preferences/Display.tpl | 10 ---------- 4 files changed, 1 insertion(+), 32 deletions(-) diff --git a/CRM/Admin/Form/Preferences/Display.php b/CRM/Admin/Form/Preferences/Display.php index f09f7db50d..6ec0ead111 100644 --- a/CRM/Admin/Form/Preferences/Display.php +++ b/CRM/Admin/Form/Preferences/Display.php @@ -104,11 +104,6 @@ class CRM_Admin_Form_Preferences_Display extends CRM_Admin_Form_Preferences { 'html_type' => NULL, 'weight' => 11, ), - 'formal_title' => array( - 'html_type' => 'checkbox', - 'title' => ts('Use Formal Title Field'), - 'weight' => 12, - ), ), ); diff --git a/CRM/Contact/Form/Edit/Individual.php b/CRM/Contact/Form/Edit/Individual.php index 45a4e78f1d..d87f7dddc4 100644 --- a/CRM/Contact/Form/Edit/Individual.php +++ b/CRM/Contact/Form/Edit/Individual.php @@ -63,9 +63,7 @@ class CRM_Contact_Form_Edit_Individual { $attributes = CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact'); - if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'formal_title')) { - $form->addElement('text', 'formal_title', ts('Title'), $attributes['formal_title']); - } + $form->addElement('text', 'formal_title', ts('Title'), $attributes['formal_title']); // first_name $form->addElement('text', 'first_name', ts('First Name'), $attributes['first_name']); diff --git a/settings/Core.setting.php b/settings/Core.setting.php index 8826e5481a..6aa61302ce 100644 --- a/settings/Core.setting.php +++ b/settings/Core.setting.php @@ -250,20 +250,6 @@ return array ( 'description' => null, 'help_text' => null, ), - 'formal_title' => array( - 'group_name' => 'CiviCRM Preferences', - 'group' => 'core', - 'name' => 'formal_title', - 'type' => 'Boolean', - 'quick_form_type' => 'YesNo', - 'default' => 0, - 'add' => '4.4', - 'title' => 'Use Formal Title Field', - 'is_domain' => 1, - 'is_contact' => 0, - 'description' => 'Enables display of the Formal Title field in the name edit block for individuals.', - 'help_text' => null, - ), 'contact_reference_options' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', diff --git a/templates/CRM/Admin/Form/Preferences/Display.tpl b/templates/CRM/Admin/Form/Preferences/Display.tpl index d2336f5a41..3f0e6e7e5d 100644 --- a/templates/CRM/Admin/Form/Preferences/Display.tpl +++ b/templates/CRM/Admin/Form/Preferences/Display.tpl @@ -184,16 +184,6 @@ fields).{/ts} {help id="id-editor_id"} - - {$form.formal_title.label} - {$form.formal_title.html} - - -   - - {ts}Enables display of the Formal Title field in the name edit block for individuals.{/ts} - - {$form.display_name_format.label} {$form.display_name_format.html} -- 2.25.1