Skip to content

Commit

Permalink
fix(Reports) scheduled report name was being eliminated due to incorr…
Browse files Browse the repository at this point in the history
…ect RegEx
  • Loading branch information
joebordes committed Mar 21, 2017
1 parent 1563098 commit 84087e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Reports/ScheduledReports.php
Expand Up @@ -137,7 +137,7 @@ public function sendEmail() {
$contents .= '<b>'.getTranslatedString('LBL_REPORT_NAME', $currentModule) .' :</b> '. $this->reportname .'<br/>';
$contents .= '<b>'.getTranslatedString('LBL_DESCRIPTION', $currentModule) .' :</b><br/>'. $this->reportdescription .'<br/><br/>';

$baseFileName = utf8_decode(preg_replace('/[^a-zA-Z0-9_-\s]/', '', $this->reportname).'_'. preg_replace('/[^a-zA-Z0-9_-\s]/', '', date('YmdHis')));
$baseFileName = utf8_decode(preg_replace('/[^a-zA-Z0-9_\s]/', '', $this->reportname).'_'. preg_replace('/[^a-zA-Z0-9_\s]/', '', date('YmdHis')));

$oReportRun = new ReportRun($this->id);
$reportFormat = $this->scheduledFormat;
Expand Down

0 comments on commit 84087e1

Please sign in to comment.