mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-26 20:45:47 +02:00
Fixes an edge case where extraFields are not returned if one side of a many many is added via extension (although this may not be the only failure case). Fixes a downstream issue with dms breaking the CMS on framework 3.2. The bug is where a many many relationship exists on a class, and a sub-class attempts to get the extra fields of the relationship. The change fixes the test for exact matching of the relationship class to the instance class, to checking if the instance is the class or a subclass of the relationship. The unit tests check the dms failure case, which is a more complex failure case.
7 lines
163 B
YAML
7 lines
163 B
YAML
ManyManyListTest_IndirectPrimary:
|
|
manymany_extra_primary:
|
|
Title: 'primary'
|
|
ManyManyListTest_SecondarySub:
|
|
manymany_extra_secondary:
|
|
Title: 'secondary'
|