Skip to content

[stable33] enh: validate datetime fields - #8795

Open
luka-nextcloud wants to merge 1 commit into
stable33from
backport/8388/stable33
Open

luka-nextcloud wants to merge 1 commit into
stable33from
backport/8388/stable33

Conversation

@luka-nextcloud

Copy link
Copy Markdown
Contributor
  • Resolves: #
  • Target version: main

Summary

Backport of PR #8388

Signed-off-by: Luka Trovic <luka@nextcloud.com>
@luka-nextcloud
luka-nextcloud changed the base branch from main to stable33 November 25, 2026 15:34

@mejo- mejo- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions.


// Fetch cards with date values and validate invalid years in PHP for DB portability.
$qb = $this->db->getQueryBuilder();
$qb->select('id', 'duedate')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$qb->select('id', 'duedate')
$qb->select('id', 'duedate', 'done')

Otherwise $card['done'] will be empty, no?

*/
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 {
$this->cardServiceValidator->check(compact('id', 'title', 'stackId', 'type', 'owner', 'order'));
$this->cardServiceValidator->check(compact('id', 'title', 'stackId', 'type', 'owner', 'order', 'duedate'));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, add done?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants