mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 10:20:14 +01:00
Try to fix Bug: Card number equal to #0 when creating a sub-task from a card.
Thanks to marcungeschikts, olivierlambert and xet7 ! Fixes #3970
This commit is contained in:
parent
21a9226c4a
commit
4c659da533
1 changed files with 3 additions and 1 deletions
|
|
@ -113,8 +113,10 @@ BlazeComponent.extendComponent({
|
||||||
).getLabelById(lastLabelId);
|
).getLabelById(lastLabelId);
|
||||||
if (lastLabel && (lastLabel.name === undefined || lastLabel.name === '')) {
|
if (lastLabel && (lastLabel.name === undefined || lastLabel.name === '')) {
|
||||||
return lastLabel.color;
|
return lastLabel.color;
|
||||||
} else {
|
} else if (lastLabel.name !== undefined && lastLabel.name !== '') {
|
||||||
return lastLabel.name;
|
return lastLabel.name;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue