mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
- Fix cards export and add customFields export.
Thanks to ymeramees ! Closes #1873, related #1775
This commit is contained in:
parent
be9cf34462
commit
6eeb708e4d
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class Exporter {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
const byBoard = { boardId: this._boardId };
|
const byBoard = { boardId: this._boardId };
|
||||||
const byBoardNoLinked = { boardId: this._boardId, linkedId: null };
|
const byBoardNoLinked = { boardId: this._boardId, linkedId: "" };
|
||||||
// we do not want to retrieve boardId in related elements
|
// we do not want to retrieve boardId in related elements
|
||||||
const noBoardId = { fields: { boardId: 0 } };
|
const noBoardId = { fields: { boardId: 0 } };
|
||||||
const result = {
|
const result = {
|
||||||
|
|
@ -55,6 +55,7 @@ class Exporter {
|
||||||
result.lists = Lists.find(byBoard, noBoardId).fetch();
|
result.lists = Lists.find(byBoard, noBoardId).fetch();
|
||||||
result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch();
|
result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch();
|
||||||
result.swimlanes = Swimlanes.find(byBoard, noBoardId).fetch();
|
result.swimlanes = Swimlanes.find(byBoard, noBoardId).fetch();
|
||||||
|
result.customFields = CustomFields.find(byBoard, noBoardId).fetch();
|
||||||
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
||||||
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
||||||
result.checklists = [];
|
result.checklists = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue