Skip to content
Snippets Groups Projects
Unverified Commit 9f525769 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #15953 from eileenmcnaughton/export_bom2

Remove unused parameter
parents 6aa26654 5ae1c8dc
Branches
Tags
No related merge requests found
......@@ -175,13 +175,11 @@ class CRM_Core_Report_Excel {
* If set this will be the title in the CSV.
* @param bool $outputHeader
* Should we output the header row.
* @param bool $saveFile
* -.
*
* @return void
*/
public static function writeCSVFile($fileName, $header, $rows, $titleHeader = NULL, $outputHeader = TRUE, $saveFile = NULL) {
if ($outputHeader && !$saveFile) {
public static function writeCSVFile($fileName, $header, $rows, $titleHeader = NULL, $outputHeader = TRUE) {
if ($outputHeader) {
CRM_Utils_System::download(CRM_Utils_String::munge($fileName),
'text/x-csv',
CRM_Core_DAO::$_nullObject,
......@@ -191,11 +189,7 @@ class CRM_Core_Report_Excel {
}
if (!empty($rows)) {
$print = TRUE;
if ($saveFile) {
$print = FALSE;
}
return self::makeCSVTable($header, $rows, $titleHeader, $print, $outputHeader);
return self::makeCSVTable($header, $rows, $titleHeader, TRUE, $outputHeader);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment