mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
A rule that moved a card to another board and then sent an email sent nothing: the email source check refused a card that had left the activity's board, in both engines. As decided, the email now reads the card on the destination board, but only when this run of the rule made the move, the destination opted into Sync effects, and the card is still there. The ordinary engine remembers its run's own move (RulesHelper.emailActivity), durable Sync proves it from a saved move of the same plan (ruleEmailActivity, ruleCardNow) and rechecks it before sending. The stored source binding (version 6) records the board the card left. Any other card off the board is refused as before, and an email may now follow a move to another board in a durable plan. Tests: binding positive and negative cases, a shape guard that nothing else can claim a followed move, and a server test of both engines that sends once from the destination and refuses a card nobody's run moved, a move to another board, and a destination that opted out. Thanks to xet7 !