Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #3234
James Cole7948058364a0
diff --git a/app/Support/Export/ExportDataGenerator.php b/app/Support/Export/ExportDataGenerator.phpindex 28de5928c7..80264b3ebc 100644--- a/app/Support/Export/ExportDataGenerator.php+++ b/app/Support/Export/ExportDataGenerator.php@@ -659,7 +659,7 @@ class ExportDataGenerator$collector = app(GroupCollectorInterface::class);$collector->setUser($this->user);$collector->setRange($this->start, $this->end)->withAccountInformation()->withCategoryInformation()->withBillInformation()- ->withBudgetInformation();+ ->withBudgetInformation()->withTagInformation();$journals = $collector->getExtractedJournals();$records = [];@@ -689,8 +689,9 @@ class ExportDataGenerator$journal['category_name'],$journal['budget_name'],$journal['bill_name'],- implode(',', $journal['tags']),+ $this->mergeTags($journal['tags']),];+}//load the CSV document from a string@@ -705,4 +706,22 @@ class ExportDataGeneratorreturn $csv->getContent(); //returns the CSV document as a string}+ /**+ * @param array $tags+ *+ * @return string+ */+ private function mergeTags(array $tags): string+ {+ if (0 === count($tags)) {+ return '';+ }+ $smol = [];+ foreach ($tags as $tag) {+ $smol[] = $tag['name'];+ }++ return implode(',', $smol);+ }+}