mirror of
https://github.com/wekan/wekan.git
synced 2026-03-09 07:02:34 +01:00
Fixed API get swimlane cards wrong order. Please test.
Thanks to mohammadZahedian, xator91 and xet7. Fixes #5319
This commit is contained in:
parent
c8921b77f0
commit
7beced1e68
1 changed files with 3 additions and 1 deletions
|
|
@ -3208,7 +3208,8 @@ if (Meteor.isServer) {
|
||||||
boardId: paramBoardId,
|
boardId: paramBoardId,
|
||||||
swimlaneId: paramSwimlaneId,
|
swimlaneId: paramSwimlaneId,
|
||||||
archived: false,
|
archived: false,
|
||||||
}).map(function(doc) {
|
},
|
||||||
|
{ sort: ['sort'] }).map(function(doc) {
|
||||||
return {
|
return {
|
||||||
_id: doc._id,
|
_id: doc._id,
|
||||||
title: doc.title,
|
title: doc.title,
|
||||||
|
|
@ -3219,6 +3220,7 @@ if (Meteor.isServer) {
|
||||||
dueAt: doc.dueAt,
|
dueAt: doc.dueAt,
|
||||||
endAt: doc.endAt,
|
endAt: doc.endAt,
|
||||||
assignees: doc.assignees,
|
assignees: doc.assignees,
|
||||||
|
sort: doc.sort,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue