Skip to content

Move setting default author and post date from beforeValidate to beforeSave (v4)#16503

Closed
i-just wants to merge 1 commit into4.xfrom
bugfix/setting-of-default-attr-vals-for-entries-v4
Closed

Move setting default author and post date from beforeValidate to beforeSave (v4)#16503
i-just wants to merge 1 commit into4.xfrom
bugfix/setting-of-default-attr-vals-for-entries-v4

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented Jan 23, 2025

Description

Moves setting default author and post date attribute values for Entry element from beforeValidate() to beforeSave() to avoid cases where the validation was not set to trigger for the entry and we end up with an entry without a postDate and therefore not being returned via basic entries query (without providing the status param).

I raised a separate PR for v5 (#16504).

Related issues

n/a

@i-just i-just changed the title Move setting default author and post date from beforeValidate to beforeSave Move setting default author and post date from beforeValidate to beforeSave (v4) Jan 23, 2025
@i-just i-just requested a review from brandonkelly January 23, 2025 09:20
@brandonkelly brandonkelly deleted the bugfix/setting-of-default-attr-vals-for-entries-v4 branch January 24, 2025 14:55
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