Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityConstraintViolationList.php
index c3404b6fa7fc7faeafe0fbc2374409a7198bb707..6081a8de16830bb0339599dda15c2cc2657e0fae 100644 (file)
@@ -68,6 +68,11 @@ class EntityConstraintViolationList extends ConstraintViolationList implements E
           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;