mirror of
https://github.com/wekan/wekan.git
synced 2026-02-24 17:04:07 +01:00
Merge pull request #3706 from jrsupplee/issue-3703
Bug fix: Rules for moving from list/swimlane
This commit is contained in:
commit
378d64f99a
2 changed files with 22 additions and 9 deletions
|
|
@ -2321,11 +2321,12 @@ if (Meteor.isServer) {
|
|||
const card = Cards.findOne(doc._id);
|
||||
const list = card.list();
|
||||
if (list) {
|
||||
// change list modifiedAt, when user modified the key values in timingaction array, if it's endAt, put the modifiedAt of list back to one year ago for sorting purpose
|
||||
const modifiedAt = new Date(
|
||||
new Date(value).getTime() -
|
||||
(action === 'endAt' ? 365 * 24 * 3600 * 1e3 : 0),
|
||||
); // set it as 1 year before
|
||||
// change list modifiedAt, when user modified the key values in
|
||||
// timingaction array, if it's endAt, put the modifiedAt of list
|
||||
// back to one year ago for sorting purpose
|
||||
const modifiedAt = moment()
|
||||
.subtract(1, 'year')
|
||||
.toISOString();
|
||||
const boardId = list.boardId;
|
||||
Lists.direct.update(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue