From 1153d9a80376ea5578eaa9130f94f9fe19728c3c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 14 Dec 2018 17:53:05 +0300 Subject: [PATCH] [SSE] Fix adding comments on new sheet --- apps/common/main/lib/controller/Comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index ef24cdcf9..b09d60148 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -1167,7 +1167,7 @@ define([ var date = (data.asc_getOnlyOfficeTime()) ? new Date(this.stringOOToLocalDate(data.asc_getOnlyOfficeTime())) : ((data.asc_getTime() == '') ? new Date() : new Date(this.stringUtcToLocalDate(data.asc_getTime()))); var user = this.userCollection.findOriginalUser(data.asc_getUserId()), - groupname = id.match(/^(doc|sheet[0-9]+)_/); + groupname = id.substr(0, id.lastIndexOf('_')+1).match(/^(doc|sheet[0-9_]+)_/); var comment = new Common.Models.Comment({ uid : id, userid : data.asc_getUserId(),