Skip to content

Commit ea963b9

Browse files
grnd-altbackportbot[bot]
authored andcommitted
fix(cards): allow cards to be updated without boardID supplied
fix(cards): allow cards to be updated without boardID supplied Signed-off-by: grnd-alt <git@belakkaf.net> [skip ci]
1 parent 8995690 commit ea963b9

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

‎lib/Controller/CardOcsController.php‎

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,24 @@ public function update(int $id, string $title, int $stackId, string $type, int $
126126
}
127127
}
128128

129-
$localBoard = $this->boardService->find($boardId, false);
130-
if ($localBoard->getExternalId()) {
131-
return new DataResponse($this->externalBoardService->updateCardOnRemote(
132-
$localBoard,
133-
$id,
134-
$title,
135-
$stackId,
136-
$type,
137-
$owner,
138-
$description,
139-
$order,
140-
$duedate,
141-
$deletedAt,
142-
$archived,
143-
$done
144-
));
129+
if ($boardId) {
130+
$localBoard = $this->boardService->find($boardId, false);
131+
if ($localBoard->getExternalId()) {
132+
return new DataResponse($this->externalBoardService->updateCardOnRemote(
133+
$localBoard,
134+
$id,
135+
$title,
136+
$stackId,
137+
$type,
138+
$owner,
139+
$description,
140+
$order,
141+
$duedate,
142+
$deletedAt,
143+
$archived,
144+
$done
145+
));
146+
}
145147
}
146148

147149
return new DataResponse($this->cardService->update($id,

0 commit comments

Comments
 (0)