Skip to content

Commit 378050d

Browse files
committed
Merge branch 'feature/17364_fix_tags_handling' into develop
2 parents c149cd4 + 19a6c2b commit 378050d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

inc/fields/tagfield.class.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,17 @@ public function displayField($canEdit = true) {
7878
});");
7979
} else {
8080
echo '<div class="form_field">';
81-
echo empty($this->value) ? '' : implode('<br />', json_decode($this->value));
81+
$tagNames = [];
82+
if (count($this->value) > 0) {
83+
foreach ($this->value as $tagId) {
84+
$tag = new PluginTagTag();
85+
if (!$tag->getFromDB($tagId)) {
86+
continue;
87+
}
88+
$tagNames[] = $tag->fields['name'];
89+
}
90+
}
91+
echo implode(', ', $tagNames);
8292
echo '</div>';
8393
}
8494
}

0 commit comments

Comments
 (0)