Skip to content
Snippets Groups Projects
Commit d030638d authored by bgm's avatar bgm
Browse files

Increase the number of columns to 5x26, because search exports of primary...

Increase the number of columns to 5x26, because search exports of primary fields often exceed 100 columns (ex: contribution search).
parent b397bf88
No related branches found
No related tags found
No related merge requests found
......@@ -44,11 +44,11 @@ class CRM_CiviExportExcel_Utils_Report {
$csv = '';
// Generate an array with { 0=>A, 1=>B, 2=>C, ... }
$foo = array(0 => '', 1 => 'A', 2 => 'B', 3 => 'C');
$foo = array(0 => '', 1 => 'A', 2 => 'B', 3 => 'C', 4 => 'D', 5 => 'E');
$a = ord('A');
$cells = array();
for ($i = 0; $i < 4; $i++) {
for ($i = 0; $i < count($foo); $i++) {
for ($j = 0; $j < 26; $j++) {
$cells[$j + ($i * 26)] = $foo[$i] . chr($j + $a);
}
......
......@@ -42,11 +42,11 @@ class CRM_CiviExportExcel_Utils_SearchExport {
$csv = '';
// Generate an array with { 0=>A, 1=>B, 2=>C, ... }
$foo = array(0 => '', 1 => 'A', 2 => 'B', 3 => 'C');
$foo = array(0 => '', 1 => 'A', 2 => 'B', 3 => 'C', 4 => 'D', 5 => 'E');
$a = ord('A');
$cells = array();
for ($i = 0; $i < 4; $i++) {
for ($i = 0; $i < count($foo); $i++) {
for ($j = 0; $j < 26; $j++) {
$cells[$j + ($i * 26)] = $foo[$i] . chr($j + $a);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment