Browse Source

Merge pull request #4319 from Ben0it-T/fix-comments-for-cards-that-link-to-a-board-are-not-shown-2538

Fix comments for cards that link to a board are not shown
Lauri Ojansivu 3 năm trước cách đây
mục cha
commit
df61e471a1

+ 2 - 0
client/components/activities/comments.js

@@ -26,6 +26,8 @@ BlazeComponent.extendComponent({
           if (card.isLinkedCard()) {
           if (card.isLinkedCard()) {
             boardId = Cards.findOne(card.linkedId).boardId;
             boardId = Cards.findOne(card.linkedId).boardId;
             cardId = card.linkedId;
             cardId = card.linkedId;
+          } else if (card.isLinkedBoard()) {
+            boardId = card.linkedId;
           }
           }
           if (text) {
           if (text) {
             CardComments.insert({
             CardComments.insert({