We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c149cd4 + 19a6c2b commit 378050dCopy full SHA for 378050d
1 file changed
inc/fields/tagfield.class.php
@@ -78,7 +78,17 @@ public function displayField($canEdit = true) {
78
});");
79
} else {
80
echo '<div class="form_field">';
81
- echo empty($this->value) ? '' : implode('<br />', json_decode($this->value));
+ $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);
92
echo '</div>';
93
}
94
0 commit comments