Skip to content

[5.x]: Entry type Title Format custom field too long for SQL #15102

@mattias78

Description

@mattias78

What happened?

Description

When using a custom field in the Title Format for an Entry Type it can exceed the SQL character limit causing the entry not to save.

Steps to reproduce

  1. Create an Entry Type with a Title Format such as My Title: {my_custom_field}. In my case the custom field was a CK Editor field to show the user a preview of the content.
  2. Create an entry and attempt to save it.

Expected behavior

The title format should be truncated.

Actual behavior

The entry doesn't save.

Craft CMS version

5.1.7

PHP version

8.2.18

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions