mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
#2875: the card-create endpoints (POST .../cards and .../cards/bulk) wrote req.body.members/assignees straight to the insert with no normalization (the create-side twin of #3697), so a null/"" payload persisted as null and broke later UI editing. Both now run coerceRestArrayParam: the field is omitted when absent (schema default [] applies), any clear payload becomes [] (never null), and a single id is wrapped into an array. #5650: POST /api/boards set members[0].userId from req.body.owner with no fallback, so a request omitting owner created a board whose only member had userId=undefined. The boards publication matches members.$elemMatch {userId, isActive:true}, which never matches undefined — the board was returned by the REST API but invisible in the browser UI. owner now falls back to the authenticated caller (req.body.owner || req.userId), mirroring the Meteor create method. REST regressions for both in tests/playwright/specs/17-rest-api.e2e.js; changelog documents both under the Upcoming release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>