Skip to content

Commit

Permalink
Merge branch 'ISSUE_4833' into ISSUE_4948
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmont3drepo committed May 24, 2024
2 parents 2a254df + 3b3a8d7 commit 944dba7
Show file tree
Hide file tree
Showing 50 changed files with 265 additions and 730 deletions.
2 changes: 1 addition & 1 deletion backend/VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ "VERSION" : "5.8.3",
{ "VERSION" : "5.9.0",
"unity" : {
"current" : "2.20.0",
"supported": []
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3drepo.io",
"version": "5.8.3",
"version": "5.9.0",
"engines": {
"node": "18.x.x"
},
Expand Down
6 changes: 4 additions & 2 deletions backend/src/v4/models/bcf.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,14 @@ function parseMarkupBuffer(markupBuffer) {
}

_.get(xml, "Markup.Comment") && xml.Markup.Comment.forEach(comment => {

const obj = addPreExistingComment(
_.get(comment, "Author[0]._"),
_.get(comment, "Comment[0]._") ?? "",
{ guid: utils.stringToUUID(_.get(comment, "Viewpoint[0].@.Guid"))},
utils.stringToUUID(_.get(comment, "@.Guid")),
utils.isoStringToTimestamp(_.get(comment, "Date[0]._"))
undefined,
utils.isoStringToTimestamp(_.get(comment, "Date[0]._")),
utils.stringToUUID(_.get(comment, "@.Guid"))
);

const commentExtras = {};
Expand Down
2 changes: 1 addition & 1 deletion backend/src/v4/models/ticket.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class Ticket extends View {
data = await beforeUpdate(data, oldTicket, userPermissions, systemComments);

if (systemComments.length > 0) {
data.comments = (oldTicket.comments || []).map(c => ({ ...c, sealed: true }));
data.comments = (data.comments ?? oldTicket.comments ?? []).map(c => ({ ...c, sealed: true }));
data.comments = data.comments.concat(systemComments);
}

Expand Down
Loading

0 comments on commit 944dba7

Please sign in to comment.