Skip to content
Snippets Groups Projects
Commit e725c5f1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

link to comment from admin panel was broken

parent e67888fa
No related branches found
No related tags found
1 merge request!939Resolve "comment hyperlink not working"
Pipeline #13955 passed
...@@ -11,6 +11,7 @@ minerva (14.0.0~beta.2) unstable; urgency=low ...@@ -11,6 +11,7 @@ minerva (14.0.0~beta.2) unstable; urgency=low
* Bug fix: information about deprecated column is more clear about column * Bug fix: information about deprecated column is more clear about column
names (#838) names (#838)
* Bug fix: version of the project is limited to 20 characters (#951) * 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)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200 -- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200
......
...@@ -153,9 +153,9 @@ CommentsAdminPanel.prototype.commentToTableRow = function (comment, disable) { ...@@ -153,9 +153,9 @@ CommentsAdminPanel.prototype.commentToTableRow = function (comment, disable) {
"&y=" + comment.getCoordinates().y + "&y=" + comment.getCoordinates().y +
"&zoom=12" + "&zoom=12" +
"&comments=on"; "&comments=on";
title = "<a href='" + commentLink + "' target='" + projectId + "'>" + comment.getTitle() + "</a>"; title = "<a href='" + commentLink + "' target='" + projectId + "'>" + xss(comment.getTitle()) + "</a>";
} else { } else {
title = comment.getTitle(); title = xss(comment.getTitle());
} }
var disabled = ""; var disabled = "";
...@@ -180,7 +180,7 @@ CommentsAdminPanel.prototype.commentToTableRow = function (comment, disable) { ...@@ -180,7 +180,7 @@ CommentsAdminPanel.prototype.commentToTableRow = function (comment, disable) {
} }
return [comment.getId(), return [comment.getId(),
xss(title), title,
xss(author), xss(author),
xss(email), xss(email),
xss(comment.getContent()), xss(comment.getContent()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment