silverstripe-framework/tests/model/ManyManyListExtensionTest.yml
Mark Stephens 3fcf1e2c98 BUG edge case on many many extra fields (fixes 4991)
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.
2016-02-04 12:47:07 +13:00

7 lines
163 B
YAML

ManyManyListTest_IndirectPrimary:
manymany_extra_primary:
Title: 'primary'
ManyManyListTest_SecondarySub:
manymany_extra_secondary:
Title: 'secondary'