- Status changed to Needs review
almost 2 years ago 5:58am 17 January 2023 - ๐ฎ๐ณIndia Charchil Khandelwal
Charchil Khandelwal โ made their first commit to this issueโs fork.
- last update
about 1 year ago 180 pass - ๐ง๐ชBelgium herved
Argh, I just stumbled on this, more specifically the issue described in ๐ Constraints on paragraph field highlight all fields in paragraph Needs review .
I think the approach here makes more sense sincearrayPropertyPath
is deprecated.But patch #2 is not working for me: it doesn't remove the delta and doesn't pass the full path.
I have the following violation path:$delta.subform.my_date_field.widget
The delta should be removed just like\Drupal\Core\Field\WidgetBase::flagErrors
does:// Separate violations by delta. $property_path = explode('.', $violation->getPropertyPath()); $delta = array_shift($property_path); ... $violation->arrayPropertyPath = $property_path;
Because it later passes the
$delta_element
toWidgetBase::errorElement
This wayNestedArray::getValue()
would get['subform', 'my_date_field', 'widget']
which is correct and returns the sub-element properly. - First commit to issue fork.
- Merge request !131Issue #3333974: Stop using $error->arrayPropertyPath โ (Merged) created by berdir
-
Berdir โ
committed 98af9c51 on 8.x-1.x
Issue #3333974 by Berdir, Charchil Khandelwal, herved: Stop using $error...
-
Berdir โ
committed 98af9c51 on 8.x-1.x
- Status changed to Fixed
5 months ago 10:46pm 6 August 2024 - ๐จ๐ญSwitzerland berdir Switzerland
Makes sense I think, and we require 10.2 now, merged.
Automatically closed - issue fixed for 2 weeks with no activity.