Commit 3e01611d authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed duplicate tag bug

parent b171b68c
......@@ -350,7 +350,7 @@ abstract class ArtefactType {
delete_records('artefact_tag', 'artefact', $this->id);
if (is_array($this->tags)) {
foreach ($this->tags as $tag) {
foreach (array_unique($this->tags) as $tag) {
if (empty($tag)) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment