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

Elements with a 0 as title show with their database ID as title in overview #4745

Closed
m-rsmn opened this issue Aug 12, 2019 · 1 comment
Closed

Comments

@m-rsmn
Copy link

m-rsmn commented Aug 12, 2019

Description

When you create an entry with as title 0, it will show in the overview list in the control panel with it's database ID as title.

This happens also with custom elements & assets. When you try to create a new user with a 0 as username , it will display as craft\elements\User in the overview, which also does not seem right.

Steps to reproduce

  1. Clean craft install (3.2.9)
  2. Create section, no fields needed as this regards the title
  3. Go to entries, create a new one with 0 as title
  4. Go to section overview and the new entry will have it's database ID as title

Additional info

  • Craft version: 3.2.9
  • PHP version: 7.x
  • Plugins & versions: /
@brandonkelly
Copy link
Member

Thanks for reporting that! It’s been fixed 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

No branches or pull requests

2 participants