Commit c30ef233 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '941-comment-hyperlink' into 'master'

Resolve "comment hyperlink not working"

Closes #941

See merge request !939
parents 76a4a5f4 1bcb6bd3
Pipeline #13961 passed with stage
in 14 minutes and 15 seconds
......@@ -11,6 +11,7 @@ minerva (14.0.0~beta.2) unstable; urgency=low
* Bug fix: information about deprecated column is more clear about column
names (#838)
* Bug fix: version of the project is limited to 20 characters (#951)
* Bug fix: link to comment on map from admin panel was broken (#941)
* Bug fix: hide glyphs tab when necessary (#949)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200
......
......@@ -153,9 +153,9 @@ CommentsAdminPanel.prototype.commentToTableRow = function (comment, disable) {
"&y=" + comment.getCoordinates().y +
"&zoom=12" +
"&comments=on";
title = "<a href='" + commentLink + "' target='" + projectId + "'>" + comment.getTitle() + "</a>";
title = "<a href='" + commentLink + "' target='" + projectId + "'>" + xss(comment.getTitle()) + "</a>";
} else {
title = comment.getTitle();
title = xss(comment.getTitle());
}
var disabled = "";
......@@ -180,7 +180,7 @@ CommentsAdminPanel.prototype.commentToTableRow = function (comment, disable) {
}
return [comment.getId(),
xss(title),
title,
xss(author),
xss(email),
xss(comment.getContent()),
......
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