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

Don't require creatorId #11923

Merged
merged 4 commits into from
Sep 13, 2022
Merged

Don't require creatorId #11923

merged 4 commits into from
Sep 13, 2022

Conversation

brianjhanson
Copy link
Contributor

Description

Stops requiring creatorId when creating a draft.

@brandonkelly this might be considered a breaking change because the signature of \craft\services\Drafts::createDraft() and craft\events\DraftEvent would change. I'm also not sure if this would have any unintended consequences that I'm not aware of, as far as I can tell the system is okay with creatorId being null but let me know if there are specific areas I should test around this.

Related issues

#11904

@brianjhanson brianjhanson requested a review from a team as a code owner September 12, 2022 21:29
@brianjhanson brianjhanson force-pushed the bugfix/dont-require-creatorid branch from 5505739 to 9b225b2 Compare September 13, 2022 15:40
@brandonkelly brandonkelly changed the base branch from develop to 4.3 September 13, 2022 16:27
@brandonkelly brandonkelly merged commit 7c232ea into 4.3 Sep 13, 2022
@brandonkelly brandonkelly deleted the bugfix/dont-require-creatorid branch September 13, 2022 16:34
@brandonkelly
Copy link
Member

Seems pretty safe since it looks like everything else surrounding creatorId is expecting it could be null. But since it is a signature change, I retargeted the PR for 4.3.

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