Skip to content

[5.x]: Error when setting a custom field handle as title format in entry type #14498

@lennonpuype

Description

@lennonpuype

What happened?

Description

I get an error when setting a custom field as title format. This way I can't access the entry type anymore.
Below are steps to reproduce just like I did things. No idea if the details have anything to do with the actual issue.

Here is a screenshot of the Error message:
Screenshot 2024-02-29 at 14 04 59

Steps to reproduce

  1. Create an entry type with the default field as title format (so keep the toggle on)
  2. Save the entry
  3. Create a matrix field that has that entry type
  4. Assign the matrix field to a section
  5. Fill in the normal matrix field (I did it all in card view)
  6. Save the section/entry
  7. Add another title field (plain text with option for line break)
  8. Make the field required
  9. Set the handle (in my case 'customTitle') as title format
  10. Go and change the content of that title to 'Primary Colours' with a linebreak in stead of the space.
  11. Save the content and an error appears

I have no idea if the error occured before or after adding the linebreak.
The error looks like a parsing or HTML issue?

Expected behavior

Shows the customTitle as the title of the Entry type.

Actual behavior

Gets an error message like above. I can go in the CMS, I just can't get to a moment where this card is being rendered, neither the content of that card. Not as individual page, and not as card

Craft CMS version

5.0.0-beta.3

PHP version

8.2

Operating system and version

OSX Sonoma 14.2.1

Database type and version

mariadb - 10.4

Image driver and version

No response

Installed plugins and versions

  • CKEditor: 4.0.0-beta.7
  • CP Field Inspect: 2.0.0-beta.1
  • Cookies: 5.0.0-beta.1
  • 2 Custom inhouse plugins that don't do anything special. They won't be the reason this happen
  • Minify: 5.0.0-beta.2
  • Vite: 5.0.0-beta.2

Screenshot 2024-02-29 at 14 23 32

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions