- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.
As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" almost a year ago and there has been no activity since that time.
Since we need more information to move forward with this issue, I am keeping the status at Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
- Status changed to Needs work
over 1 year ago 2:10pm 20 June 2023 - πΊπ¦Ukraine gilmord πΊπ¦Ukraine
Does comment #4 resolve this?
Hi @larowlan
Number 4 seems to work - but this is a hack, you need to keep in mind to implement hook_entity_bundle_field_info every time you override a field with a validation constraint and re-add the constraints to the override.For sure this should be automated, otherwise, developers will get into debugging hell trying to find why some constraints suddenly stop working at all.
- Status changed to Active
9 months ago 12:12pm 11 April 2024 - πΊπΈUnited States m.stenta
We just encountered this in farmOS, where we have a base field on our entity type, and an optional module that wants to add both a constraint and override the label of the field on a specific bundle.
The workaround of using
hook_entity_bundle_field_info()
instead ofhook_entity_field_info_alter()
to add the constraint fixed the issue.See: https://github.com/farmOS/farmOS/blob/91a4cdc4e7055c12697edd169ff0b11150...
But I agree this workaround shouldn't be necessary, so this is still a valid bug in my opinion.