Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
d7d52f61
Unverified
Commit
d7d52f61
authored
5 years ago
by
Seamus Lee
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #15960 from eileenmcnaughton/ex_param
[REF] Remove unused parameter
parents
35027fdb
8a188f37
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/Report/Excel.php
+4
-25
4 additions, 25 deletions
CRM/Core/Report/Excel.php
CRM/Export/BAO/ExportProcessor.php
+1
-1
1 addition, 1 deletion
CRM/Export/BAO/ExportProcessor.php
with
5 additions
and
26 deletions
CRM/Core/Report/Excel.php
+
4
−
25
View file @
d7d52f61
...
...
@@ -27,21 +27,17 @@ class CRM_Core_Report_Excel {
* @param array $rows
* result set rows.
* @param string $titleHeader
* @param bool $print
* Should the output be printed.
* @param bool $outputHeader
*
* @return mixed
* empty if output is printed, else output
*
*/
public
static
function
makeCSVTable
(
$header
,
$rows
,
$titleHeader
=
NULL
,
$print
=
TRUE
,
$outputHeader
=
TRUE
)
{
public
static
function
makeCSVTable
(
$header
,
$rows
,
$titleHeader
=
NULL
,
$outputHeader
=
TRUE
)
{
if
(
$titleHeader
)
{
echo
$titleHeader
;
}
$result
=
''
;
$config
=
CRM_Core_Config
::
singleton
();
$seperator
=
$config
->
fieldSeparator
;
$enclosed
=
'"'
;
...
...
@@ -59,12 +55,7 @@ class CRM_Core_Report_Excel {
// need to add PMA_exportOutputHandler functionality out here, rather than
// doing it the moronic way of assembling a buffer
$out
=
trim
(
substr
(
$schema_insert
,
0
,
-
1
))
.
$add_character
;
if
(
$print
)
{
echo
$out
;
}
else
{
$result
.
=
$out
;
}
echo
$out
;
}
$fields_cnt
=
count
(
$header
);
...
...
@@ -110,19 +101,7 @@ class CRM_Core_Report_Excel {
// end for
$out
=
$schema_insert
.
$add_character
;
if
(
$print
)
{
echo
$out
;
}
else
{
$result
.
=
$out
;
}
}
if
(
$print
)
{
return
;
}
else
{
return
$result
;
echo
$out
;
}
}
...
...
@@ -189,7 +168,7 @@ class CRM_Core_Report_Excel {
}
if
(
!
empty
(
$rows
))
{
return
self
::
makeCSVTable
(
$header
,
$rows
,
$titleHeader
,
TRUE
,
$outputHeader
);
return
self
::
makeCSVTable
(
$header
,
$rows
,
$titleHeader
,
$outputHeader
);
}
}
...
...
This diff is collapsed.
Click to expand it.
CRM/Export/BAO/ExportProcessor.php
+
1
−
1
View file @
d7d52f61
...
...
@@ -2387,7 +2387,7 @@ LIMIT $offset, $limit
'csv'
,
FALSE
);
CRM_Core_Report_Excel
::
makeCSVTable
(
$headerRows
,
[],
NULL
,
TRUE
,
TRUE
);
CRM_Core_Report_Excel
::
makeCSVTable
(
$headerRows
,
[],
NULL
,
TRUE
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment