mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 23:21:47 +01:00
Fix and improve linked cards
This commit is contained in:
parent
b881c3b908
commit
3e715bbcc9
3 changed files with 16 additions and 7 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue