mirror of
https://github.com/wekan/wekan.git
synced 2026-02-02 06:31:47 +01:00
The mapCustomFieldsToBoard() method is async but was being called without await in copy() and move() methods. This caused a Promise to be assigned to customFields instead of the actual array, failing MongoDB schema validation on cross-board operations. Changes: - Make copy() method async and await mapCustomFieldsToBoard() - Add await in move() for mapCustomFieldsToBoard() - Make copyCard() server method async and await card.copy() - Add null check in mapCustomFieldsToBoard() for cards without custom fields - Update client to use Meteor.callAsync for server-only copyCard method Fixes #6105 |
||
|---|---|---|
| .. | ||
| components | ||
| config | ||
| lib | ||
| 00-startup.js | ||