CRM-21398 - Fix fatal error when exporting cases
authorColeman Watts <coleman@civicrm.org>
Mon, 6 Nov 2017 15:38:56 +0000 (10:38 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 6 Nov 2017 15:38:56 +0000 (10:38 -0500)
----------------------------------------
* CRM-21398: Error when exporting cases
  https://issues.civicrm.org/jira/browse/CRM-21398

CRM/Export/BAO/Export.php
templates/CRM/Case/Form/Selector.tpl

index 4ddb9011172ec734d783c7a17bbe5762d7ce4b2e..e097d4e188c2662b8c4368e3b9c179b1b20f73ab 100644 (file)
@@ -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";
index 0943673edacfbdb84af828441f30d6f63ed4ed7c..61b7d3bc9783fc0a9e62aa211ba4077320141a15 100644 (file)
@@ -25,7 +25,7 @@
 *}
 {include file="CRM/common/pager.tpl" location="top"}
 {strip}
-<table class="caseSelector">
+<table class="caseSelector row-highlight">
   <tr class="columnheader">
 
   {if ! $single and $context eq 'Search' }