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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | empty_title_field_poses_an_undefined_offset_during_validation-3211815-5.patch | 651 bytes | bbytyqi |
Comments
Comment #2
pgshehata commentedComment #3
j_s commentedI can confirm that #2 works for my use case.
Comment #4
nfriend commented#2 Worked for me as well.
Comment #5
bbytyqi commentedHad to change the patch so it works on version 1.4.0.
Comment #6
i-trokhanenkoThanks, I'll take a look and commit
Comment #8
i-trokhanenko