From ab3b2aa23c8afb2e18aea40b5bcfebcd9c796252 Mon Sep 17 00:00:00 2001 From: "Enjeck C." Date: Mon, 28 Jul 2025 09:03:43 +0100 Subject: [PATCH] fix: Use getId() method for card ID retrieval Signed-off-by: Enjeck C. --- lib/Controller/CardController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/CardController.php b/lib/Controller/CardController.php index c0e6d10c3..6328fb5cc 100644 --- a/lib/Controller/CardController.php +++ b/lib/Controller/CardController.php @@ -65,11 +65,11 @@ class CardController extends Controller { $card = $this->cardService->create($title, $stackId, $type, $order, $this->userId, $description, $duedate); foreach ($labels as $label) { - $this->assignLabel($card->id, $label); + $this->assignLabel($card->getId(), $label); } foreach ($users as $user) { - $this->assignmentService->assignUser($card->id, $user['id'], $user['type']); + $this->assignmentService->assignUser($card->getId(), $user['id'], $user['type']); } return $card;