From 8cc4803b825ab5ce509e524541060079d0f74f0c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 16 Jul 2019 17:50:21 +0300 Subject: [PATCH] [Comments] Fix opening comment action --- apps/common/main/lib/controller/Comments.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index 699044291..855e85b5a 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -282,7 +282,12 @@ define([ return false; }, onShowComment: function (id, selected) { - var comment = (typeof id == Object) ? id : this.findComment(id); + var comment; + if (typeof id == 'object') { + comment = id; + id = comment.get('uid'); + } else + comment = this.findComment(id); if (comment) { if (null !== comment.get('quote')) { if (this.api) {