mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 13:48:49 +01:00
Fixed Importing JSON exports fails.
Thanks to KeptnArgo and xet7 ! Fixes #3742
This commit is contained in:
parent
06937d0aa0
commit
bd1de94312
2 changed files with 7 additions and 1 deletions
|
|
@ -271,6 +271,7 @@ Cards.attachSchema(
|
|||
type: Number,
|
||||
decimal: true,
|
||||
defaultValue: 0,
|
||||
optional: true,
|
||||
},
|
||||
subtaskSort: {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -157,9 +157,14 @@ export class TrelloCreator {
|
|||
|
||||
// You must call parseActions before calling this one.
|
||||
createBoardAndLabels(trelloBoard) {
|
||||
let color = 'blue';
|
||||
if (this.getColor(trelloBoard.prefs.background) !== undefined) {
|
||||
color = this.getColor(trelloBoard.prefs.background);
|
||||
}
|
||||
|
||||
const boardToCreate = {
|
||||
archived: trelloBoard.closed,
|
||||
color: this.getColor(trelloBoard.prefs.background),
|
||||
color: color,
|
||||
// very old boards won't have a creation activity so no creation date
|
||||
createdAt: this._now(this.createdAt.board),
|
||||
labels: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue