What happened?
Description
When a Plain Text field has a "Field Limit" configured (maximum number of characters or bytes), validation errors are triggered even when the entry is disabled. Disabled entries should not run field-level validation, as they are not active content.
Steps to reproduce
- Create a Plain Text field with a "Field Limit" set (e.g., 10 characters).
- Create an entry using a section that includes this field.
- Fill the field with content that exceeds the configured limit.
- Disable the entry.
- Save the entry.
Expected behavior
The entry should save successfully without validation errors, since disabled entries are not expected to enforce field-level validation constraints.
Actual behavior
Validation errors are returned for the Plain Text field's character limit, preventing the disabled entry from being saved.
Craft CMS version
5.9.19
PHP version
8.2.30
Operating system and version
Linux 6.12.76-linuxkit
Database type and version
MySQL 8.0.44
Image driver and version
Imagick 3.8.1
Installed plugins and versions
What happened?
Description
When a Plain Text field has a "Field Limit" configured (maximum number of characters or bytes), validation errors are triggered even when the entry is disabled. Disabled entries should not run field-level validation, as they are not active content.
Steps to reproduce
Expected behavior
The entry should save successfully without validation errors, since disabled entries are not expected to enforce field-level validation constraints.
Actual behavior
Validation errors are returned for the Plain Text field's character limit, preventing the disabled entry from being saved.
Craft CMS version
5.9.19
PHP version
8.2.30
Operating system and version
Linux 6.12.76-linuxkit
Database type and version
MySQL 8.0.44
Image driver and version
Imagick 3.8.1
Installed plugins and versions