Skip to content

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

Merged
brandonkelly merged 3 commits into5.xfrom
bugfix/setting-of-default-attr-vals-for-entries-v5
Jan 23, 2025
Merged

Move setting default author and post date from beforeValidate to beforeSave (v5)#16504
brandonkelly merged 3 commits into5.xfrom
bugfix/setting-of-default-attr-vals-for-entries-v5

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 v4 (#16503).

Related issues

n/a

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