diff --git a/lib/Controller/CardOcsController.php b/lib/Controller/CardOcsController.php index 62e332432..867af26f0 100644 --- a/lib/Controller/CardOcsController.php +++ b/lib/Controller/CardOcsController.php @@ -50,13 +50,13 @@ public function create(string $title, int $stackId, ?int $boardId = null, ?strin } $card = $this->cardService->create($title, $stackId, $type, $order, $owner, $description, $duedate, $startdate, $color); - // foreach ($labels as $label) { - // $this->assignLabel($card->getId(), $label); - // } + foreach ($labels ?? [] as $label) { + $this->assignLabel($boardId, $card->getId(), $label); + } - // foreach ($users as $user) { - // $this->assignmentService->assignUser($card->getId(), $user['id'], $user['type']); - // } + foreach ($users ?? [] as $user) { + $this->assignmentService->assignUser($card->getId(), $user['id'], $user['type']); + } return new DataResponse($card); }