diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index 95545f8d9..2101fc52c 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -606,7 +606,7 @@ define([ }, onApiAddComments: function (data) { for (var i = 0; i < data.length; ++i) { - var comment = this.readSDKComment(data[i].Id, data[i].Comment); + var comment = this.readSDKComment(data[i].asc_getId(), data[i]); this.collection.push(comment); } diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 0d65e83e3..bdd66a471 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -480,7 +480,7 @@ define([ onApiAddComments: function(data) { for (var i = 0; i < data.length; ++i) { - if (data[i].Comment && data[i].Comment.asc_getUserId() !== this.mode.user.id) { + if (data[i].asc_getUserId() !== this.mode.user.id) { this.leftMenu.markCoauthOptions('comments'); break; } diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index ff3520ff6..15c927455 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -375,7 +375,7 @@ define([ onApiAddComments: function(data) { for (var i = 0; i < data.length; ++i) { - if (data[i].Comment && data[i].Comment.asc_getUserId() !== this.mode.user.id) { + if (data[i].asc_getUserId() !== this.mode.user.id) { this.leftMenu.markCoauthOptions('comments'); break; } diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index efef9b4a9..9aac71131 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -516,7 +516,7 @@ define([ onApiAddComments: function(data) { for (var i = 0; i < data.length; ++i) { - if (data[i].Comment && data[i].Comment.asc_getUserId() !== this.mode.user.id) { + if (data[i].asc_getUserId() !== this.mode.user.id) { this.leftMenu.markCoauthOptions('comments'); break; }