The empty title field poses an Undefined offset: 0 during validation

Created on 1 May 2021, over 3 years ago
Updated 24 May 2024, 6 months ago

Problem/Motivation

Notice: Undefined offset: 0 in Drupal\unique_entity_title\Plugin\Validation\Constraint\UniqueEntityTitleValidator->validate() (line 17 of modules/contrib/unique_entity_title/src/Plugin/Validation/Constraint/UniqueEntityTitleValidator.php).
Drupal\unique_entity_title\Plugin\Validation\Constraint\UniqueEntityTitleValidator->validate(Object, Object) (Line: 196)

Steps to reproduce

- create a new node
- deactivate the html5 validation of the title field
- leave the title field empty
- save the node
- error is displayed

Proposed resolution

ignore the validation of the title field if it is empty

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France pgshehata

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024