summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/cards.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 21a7f2ad..302beddc 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -712,6 +712,14 @@ Cards.helpers({
}
},
+ getId() {
+ if (this.isLinked()) {
+ return this.linkedId;
+ } else {
+ return this._id;
+ }
+ },
+
getTitle() {
if (this.isLinkedCard()) {
const card = Cards.findOne({ _id: this.linkedId });