From 290d4ccc0ee09365a0f893d3ab4d3ef7fc0e8b1d Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Thu, 10 Oct 2013 18:56:52 +0530 Subject: [PATCH] CRM-13555, remove description column from default list atleast for upgrade. --- CRM/Core/BAO/UFGroup.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/UFGroup.php b/CRM/Core/BAO/UFGroup.php index 6b2d429505..b449f454e0 100644 --- a/CRM/Core/BAO/UFGroup.php +++ b/CRM/Core/BAO/UFGroup.php @@ -1586,7 +1586,12 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) * @static */ public static function getModuleUFGroup($moduleName = NULL, $count = 0, $skipPermission = TRUE, $op = CRM_Core_Permission::VIEW, $returnFields = NULL) { - $selectFields = array('id', 'title', 'created_id', 'description', 'is_active', 'is_reserved', 'group_type'); + $selectFields = array('id', 'title', 'created_id', 'is_active', 'is_reserved', 'group_type'); + + if (!CRM_Core_Config::isUpgradeMode()) { + // CRM-13555, since description field was added later (4.4), and to avoid any problems with upgrade + $selectFields[] = 'description'; + } if (!empty($returnFields)) { $selectFields = array_merge($returnFields, array_diff($selectFields, $returnFields)); -- 2.25.1