projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Entity
/
EntityConstraintViolationList.php
diff --git
a/web/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
b/web/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
index c3404b6fa7fc7faeafe0fbc2374409a7198bb707..6081a8de16830bb0339599dda15c2cc2657e0fae 100644
(file)
--- a/
web/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
+++ b/
web/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
@@
-68,6
+68,11
@@
class EntityConstraintViolationList extends ConstraintViolationList implements E
if ($this->entity->hasField($field_name)) {
$this->violationOffsetsByField[$field_name][$offset] = $offset;
}
if ($this->entity->hasField($field_name)) {
$this->violationOffsetsByField[$field_name][$offset] = $offset;
}
+ // If the first part of the violation property path is not a valid
+ // field name, we're dealing with an entity-level validation.
+ else {
+ $this->entityViolationOffsets[$offset] = $offset;
+ }
}
else {
$this->entityViolationOffsets[$offset] = $offset;
}
else {
$this->entityViolationOffsets[$offset] = $offset;