Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix possible issue with tag display in bulk editor.
James Coleec03017eca0c
diff --git a/app/Helpers/Collector/GroupCollector.php b/app/Helpers/Collector/GroupCollector.phpindex 7f8ed23b72..961781e091 100644--- a/app/Helpers/Collector/GroupCollector.php+++ b/app/Helpers/Collector/GroupCollector.php@@ -699,7 +699,7 @@ class GroupCollector implements GroupCollectorInterface$result = $this->convertToInteger($result);$result['reconciled'] = 1 === (int)$result['reconciled'];- if (array_key_exists('tag_id', $result)) { // assume the other fields are present as well.+ if (array_key_exists('tag_id', $result) && null !== $result['tag_id']) { // assume the other fields are present as well.$tagId = (int)$augumentedJournal['tag_id'];$tagDate = null;try {diff --git a/resources/views/v1/transactions/bulk/edit.twig b/resources/views/v1/transactions/bulk/edit.twigindex 0d59c01f2a..5711041cda 100644--- a/resources/views/v1/transactions/bulk/edit.twig+++ b/resources/views/v1/transactions/bulk/edit.twig@@ -76,8 +76,8 @@</td><td>{% for tag in journal.tags %}- {% if null != tag.name %}- <span style="display: inline;"><a class="label label-success" href="{{ route('tags.show', [tag.name]) }}">+ {% if 0 != tag.id %}+ <span style="display: inline;"><a class="label label-success" href="{{ route('tags.show', [tag.id]) }}"><i class="fa fa-fw fa-tag"></i>{{ tag.name }}</a></span>