mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 16:48:49 +01:00
Create card does not allow an empty member list
When I create a card via the API I always have the authorId in members, even if I pass an empty string as member list. Workaround: I can empty the member list by passing an empty string in a PUT request. This pull request proposes to not add the authorId to the member list when creating a card and the member list is empty.
This commit is contained in:
parent
533bc045d0
commit
a797abaa36
1 changed files with 1 additions and 1 deletions
|
|
@ -2156,7 +2156,7 @@ if (Meteor.isServer) {
|
|||
const check = Users.findOne({
|
||||
_id: req.body.authorId,
|
||||
});
|
||||
const members = req.body.members || [req.body.authorId];
|
||||
const members = req.body.members;
|
||||
const assignees = req.body.assignees;
|
||||
if (typeof check !== 'undefined') {
|
||||
const id = Cards.direct.insert({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue