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

Allow Titles to be published from draft #4323

Closed
wants to merge 1 commit into from

Conversation

linchpinstudios
Copy link

Currently
If you set a $draft->title on when it is published it gets replaced with the getSection()->name on a Section::TYPE_SINGLE entry.

Changes
Checks for a $draft->title on Section::TYPE_SINGLE and only replaces it wit the getSection()->name if there isn't a title provided.

@brandonkelly
Copy link
Member

Thanks for pointing this out! That code actually hasn’t been necessary since before Craft 2.2, when Single entries gained the ability to have actual titles. Just removed it for the next release.

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.

3 participants