Skip to content

Commit 1c77d11

Browse files
bahmanrakekniven
authored andcommitted
fix(card): include duedate in card update validation
- Added 'duedate' parameter to the validation check in update method Signed-off-by: bahman <bja@adlas.at>
1 parent 84b873d commit 1c77d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Service/CardService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function delete(int $id): Card {
234234
* @throws BadRequestException
235235
*/
236236
public function update(int $id, string $title, int $stackId, string $type, string $owner, string $description = '', int $order = 0, ?string $duedate = null, ?int $deletedAt = null, ?bool $archived = null, ?OptionalNullableValue $done = null): Card {
237-
$this->cardServiceValidator->check(compact('id', 'title', 'stackId', 'type', 'owner', 'order'));
237+
$this->cardServiceValidator->check(compact('id', 'title', 'stackId', 'type', 'owner', 'order', 'duedate'));
238238

239239
$this->permissionService->checkPermission($this->cardMapper, $id, Acl::PERMISSION_EDIT, allowDeletedCard: true);
240240
$this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_EDIT);

0 commit comments

Comments
 (0)