Skip to content

Commit 3acfa0d

Browse files
committed
refactor(pinia): move remaining vuex state to pinia setting store
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent 890c174 commit 3acfa0d

30 files changed

Lines changed: 401 additions & 1105 deletions

lib/Controller/CardOcsController.php

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function removeLabel(?int $boardId, int $cardId, int $labelId): DataRespo
113113

114114
#[NoAdminRequired]
115115
#[PublicPage]
116-
public function update(int $id, string $title, int $stackId, string $type, int $order, string $description, $duedate, $deletedAt, int $boardId, array|string|null $owner = null, $archived = null, $startdate = null): DataResponse {
116+
public function update(int $id, string $title, int $stackId, string $type, int $order, string $description, $duedate, $deletedAt, ?int $boardId, array|string|null $owner = null, $archived = null, $startdate = null): DataResponse {
117117
$done = array_key_exists('done', $this->request->getParams())
118118
? new OptionalNullableValue($this->request->getParam('done', null))
119119
: null;
@@ -128,22 +128,24 @@ public function update(int $id, string $title, int $stackId, string $type, int $
128128
}
129129
}
130130

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

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

0 commit comments

Comments
 (0)