Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move setting default author and post date from beforeValidate to beforeSave (v5) #16504

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

i-just
Copy link
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 v4 (#16503).

Related issues

n/a

@brandonkelly brandonkelly merged commit ac44768 into 5.x Jan 23, 2025
@brandonkelly brandonkelly deleted the bugfix/setting-of-default-attr-vals-for-entries-v5 branch January 23, 2025 21:26
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