Commit 9ff0edc6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

id of point comments fixed

parent 0b05679f
......@@ -126,7 +126,8 @@ public class CommentRestImpl {
String column = string.toLowerCase();
Object value = null;
if (column.equals("id") || column.equals("idobject")) {
value = comment.getId();
value = getId(comment);
} else if (column.equals("modelid")) {
value = comment.getModelData().getId();
} else if (column.equals("title")) {
......@@ -159,6 +160,14 @@ public class CommentRestImpl {
return result;
}
private Object getId(Comment comment) {
if (comment.getTableName() == null) {
return comment.getCoordinates().toString();
} else {
return comment.getTableId();
}
}
private Object getType(Comment comment) {
if (comment.getTableName() != null) {
if (comment.getTableName().getName().contains("Reaction")) {
......
Supports Markdown
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