fix: Use getId() method for card ID retrieval
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
This commit is contained in:
committed by
backportbot[bot]
parent
0c9ad4aaa0
commit
66d94dd9df
@@ -64,11 +64,11 @@ class CardController extends Controller {
|
|||||||
$card = $this->cardService->create($title, $stackId, $type, $order, $this->userId, $description, $duedate);
|
$card = $this->cardService->create($title, $stackId, $type, $order, $this->userId, $description, $duedate);
|
||||||
|
|
||||||
foreach ($labels as $label) {
|
foreach ($labels as $label) {
|
||||||
$this->assignLabel($card->id, $label);
|
$this->assignLabel($card->getId(), $label);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
$this->assignmentService->assignUser($card->id, $user['id'], $user['type']);
|
$this->assignmentService->assignUser($card->getId(), $user['id'], $user['type']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $card;
|
return $card;
|
||||||
|
|||||||
Reference in New Issue
Block a user