Fix possible issue with tag display in bulk editor.

This commit is contained in:
James Cole 2021-04-21 06:23:12 +02:00
parent 0b920b5c64
commit ec03017eca
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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>