Fix issue with spaces in tag report.

This commit is contained in:
James Cole
2018-12-20 22:19:07 +01:00
parent 0c2218762c
commit 29b02fcac2
2 changed files with 9 additions and 8 deletions

View File

@@ -80,6 +80,7 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
{
$accountIds = implode(',', $this->accounts->pluck('id')->toArray());
$tagTags = implode(',', $this->tags->pluck('tag')->toArray());
$tagIds = implode(',', $this->tags->pluck('id')->toArray());
$reportType = 'tag';
$expenses = $this->getExpenses();
$income = $this->getIncome();
@@ -95,7 +96,7 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
$result = view(
'reports.tag.month', compact(
'accountIds', 'tagTags', 'reportType', 'accountSummary', 'tagSummary', 'averageExpenses', 'averageIncome', 'topIncome',
'topExpenses'
'topExpenses', 'tagIds'
)
)->with('start', $this->start)->with('end', $this->end)->with('tags', $this->tags)->with('accounts', $this->accounts)->render();
} catch (Throwable $e) {