From c7162176137eaf19201abb67dda9d39b412026aa Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 14 Dec 2015 13:44:37 +0530 Subject: [PATCH] CRM-17687: Import tag length ---------------------------------------- * CRM-17687: Import tag length https://issues.civicrm.org/jira/browse/CRM-17687 --- CRM/Contact/Import/Form/Preview.php | 6 +++--- CRM/Contact/Import/ImportJob.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/Import/Form/Preview.php b/CRM/Contact/Import/Form/Preview.php index 714f8c33f2..a9b0549321 100644 --- a/CRM/Contact/Import/Form/Preview.php +++ b/CRM/Contact/Import/Form/Preview.php @@ -134,7 +134,7 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview { * Build the form object. */ public function buildQuickForm() { - $this->addElement('text', 'newGroupName', ts('Name for new group')); + $this->addElement('text', 'newGroupName', ts('Name for new group'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Group', 'title')); $this->addElement('text', 'newGroupDesc', ts('Description of new group')); $groups = $this->get('groups'); @@ -147,8 +147,8 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview { } //display new tag - $this->addElement('text', 'newTagName', ts('Tag')); - $this->addElement('text', 'newTagDesc', ts('Description')); + $this->addElement('text', 'newTagName', ts('Tag'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Tag', 'name')); + $this->addElement('text', 'newTagDesc', ts('Description'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Tag', 'description')); $tag = $this->get('tag'); if (!empty($tag)) { diff --git a/CRM/Contact/Import/ImportJob.php b/CRM/Contact/Import/ImportJob.php index d1b9efdbe4..c09d128837 100644 --- a/CRM/Contact/Import/ImportJob.php +++ b/CRM/Contact/Import/ImportJob.php @@ -411,7 +411,6 @@ class CRM_Contact_Import_ImportJob { $tagParams = array( 'name' => $newTagName, - 'title' => $newTagName, 'description' => $newTagDesc, 'is_selectable' => TRUE, 'used_for' => 'civicrm_contact', -- 2.25.1