Explorar el Código

Merge pull request #4444 from mfilser/card_details_list_dropdown_filled_opened_from_global_search

Card Details List-Dropdown is now filled too if the card is opened from global search
Lauri Ojansivu hace 3 años
padre
commit
35837a6b24
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      client/components/cards/cardDetails.js
  2. 1 0
      server/publications/cards.js

+ 1 - 1
client/components/cards/cardDetails.js

@@ -32,7 +32,7 @@ BlazeComponent.extendComponent({
   },
 
   onCreated() {
-    this.currentBoard = Boards.findOne(Session.get('currentBoard'));
+    this.currentBoard = Utils.getCurrentBoard();
     this.isLoaded = new ReactiveVar(false);
 
     if (this.parentComponent() && this.parentComponent().parentComponent()) {

+ 1 - 0
server/publications/cards.js

@@ -69,6 +69,7 @@ Meteor.publishRelations('popupCardData', function(cardId) {
     Cards.find({_id: cardId}),
     function(cardId, card) {
       this.cursor(Boards.find({_id: card.boardId}));
+      this.cursor(Lists.find({boardId: card.boardId}));
     },
   );
   return this.ready()