From 549f8fee3aee3675ae2c04fa14b88f4a783df2c6 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Mon, 31 Aug 2015 21:31:12 +0200 Subject: Fix comment insertion --- client/components/activities/comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/activities/comments.js') diff --git a/client/components/activities/comments.js b/client/components/activities/comments.js index a3af7ba6..e3a82c4b 100644 --- a/client/components/activities/comments.js +++ b/client/components/activities/comments.js @@ -26,8 +26,8 @@ BlazeComponent.extendComponent({ let input = this.getInput(); if ($.trim(input.val())) { CardComments.insert({ - boardId: this.boardId, - cardId: this._id, + boardId: this.currentData().boardId, + cardId: this.currentData()._id, text: input.val() }); resetCommentInput(input); -- cgit v1.2.3-1-g7c22