- Issue created by @gobind singh
- 🇪🇸Spain rcodina Barcelona
I'm trying to migrate from Business Rules (which is getting deprecated) module and I face the same problem. But in my case the parent field has only one value and the child can have many. The problem occurs when you edit an entity with a parent and multiple childs selected. If you switch to a parent with only one child and you select it, everything is fine. But If you switch again to a parent with multiple child values, the child field can only have one value and, when you try to save, it show an error that the field is mandatory and then the child field can have multiple values again.
@gobind singh Can you try Business Rules if it works for you? This would give more information about a possible solution.
Maybe we can compare both codes (BusinessRulesViewsSelectionand ViewsSelection) to try to figure out what's going on.
- Merge request !5Recover broken feature from Business Rule code base: support multivalued fields → (Open) created by rcodina
- 🇪🇸Spain rcodina Barcelona
@gobind singh Could you please check out the patch of the MR?
To maintainers of the module: there are no tests and GitlabCI is not enabled. Wouldn't be better to do both in a new issue? We could rescue dependant tests from Business Rules as a starting point.
- 🇪🇸Spain rcodina Barcelona
The missing code was from 🐛 Multi-valued dependent child fields are not saved Fixed
- 🇪🇸Spain pcambra Asturies
@rcodina, that would be fantastic if you could create an issue for the tests
- Status changed to Needs review
about 1 month ago 11:29am 9 November 2024 - 🇪🇸Spain rcodina Barcelona
@pcambra I finally done all work in 📌 Automated Drupal 11 compatibility fixes for dependent_fields Needs review