From 72c35327d72f763846825f3e1607c544794667bf Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 6 Nov 2017 10:38:56 -0500 Subject: [PATCH] CRM-21398 - Fix fatal error when exporting cases ---------------------------------------- * CRM-21398: Error when exporting cases https://issues.civicrm.org/jira/browse/CRM-21398 --- CRM/Export/BAO/Export.php | 14 +------------- templates/CRM/Case/Form/Selector.tpl | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 4ddb901117..e097d4e188 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1322,19 +1322,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c } else { if (substr($fieldName, -3, 3) == '_id') { - // for trxn_id and its variants use a longer buffer - // to accommodate different systems - CRM-13739 - static $notRealIDFields = NULL; - if ($notRealIDFields == NULL) { - $notRealIDFields = array('trxn_id', 'componentpaymentfield_transaction_id', 'phone_type_id'); - } - - if (in_array($fieldName, $notRealIDFields)) { - $sqlColumns[$fieldName] = "$fieldName varchar(255)"; - } - else { - $sqlColumns[$fieldName] = "$fieldName varchar(16)"; - } + $sqlColumns[$fieldName] = "$fieldName varchar(255)"; } elseif (substr($fieldName, -5, 5) == '_note') { $sqlColumns[$fieldName] = "$fieldName text"; diff --git a/templates/CRM/Case/Form/Selector.tpl b/templates/CRM/Case/Form/Selector.tpl index 0943673eda..61b7d3bc97 100644 --- a/templates/CRM/Case/Form/Selector.tpl +++ b/templates/CRM/Case/Form/Selector.tpl @@ -25,7 +25,7 @@ *} {include file="CRM/common/pager.tpl" location="top"} {strip} - +
{if ! $single and $context eq 'Search' } -- 2.25.1