From e0f9d6a258f496d9963dd6d1824d9330a7c1cd89 Mon Sep 17 00:00:00 2001 From: kurund Date: Fri, 19 Dec 2014 02:13:26 +0530 Subject: [PATCH] CRM-15180, added support for attachments and some wierd error fixes ---------------------------------------- * CRM-15180: Using the taglist style of the "contact" page for the "new contact" page https://issues.civicrm.org/jira/browse/CRM-15180 --- CRM/Activity/Form/Activity.php | 3 +-- CRM/Case/Form/Case.php | 3 +-- CRM/Core/BAO/File.php | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index 0b5d13fcb2..5251de5cca 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -738,8 +738,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { $this->assign('customDataSubType', $this->_activityTypeId); $this->assign('entityID', $this->_activityId); - $tags = CRM_Core_BAO_Tag::getTags('civicrm_activity', - CRM_Core_DAO::$_nullArray, NULL, + CRM_Core_BAO_Tag::getTags('civicrm_activity', $tags, NULL, '  ', TRUE); if (!empty($tags)) { diff --git a/CRM/Case/Form/Case.php b/CRM/Case/Form/Case.php index 07529edabf..70ee083b79 100644 --- a/CRM/Case/Form/Case.php +++ b/CRM/Case/Form/Case.php @@ -266,8 +266,7 @@ class CRM_Case_Form_Case extends CRM_Core_Form { 'maxlength' => '128')), TRUE ); - $tags = CRM_Core_BAO_Tag::getTags('civicrm_case', - CRM_Core_DAO::$_nullArray, NULL, + CRM_Core_BAO_Tag::getTags('civicrm_case', $tags, NULL, '  ', TRUE); if (!empty($tags)) { diff --git a/CRM/Core/BAO/File.php b/CRM/Core/BAO/File.php index e888505821..660303a848 100644 --- a/CRM/Core/BAO/File.php +++ b/CRM/Core/BAO/File.php @@ -419,7 +419,8 @@ AND CEF.entity_id = %2"; $form->assign('numAttachments', $numAttachments); - $tags = CRM_Core_BAO_Tag::getTags('civicrm_file'); + CRM_Core_BAO_Tag::getTags('civicrm_file', $tags, NULL, + '  ', TRUE); // get tagset info $parentNames = CRM_Core_BAO_Tag::getTagSet('civicrm_file'); -- 2.25.1