silverstripe-framework/tests/php/Forms/GridField/GridFieldReadonlyTest.yml
Simon Gow 4c3a068859 Issue 3357 - Add GridField Readonly Transformation
GridField doesn't have a valid readonly state if it's value is set to an Object
without `forTemplate()`. The default behaviour is to render a ReadonlyField,
but given GridField is a complex type this isn't suitable.

This bugfix provides a transformation method to render only components that are
whitelisted to provide a readonly state.

@see #3357 - https://github.com/silverstripe/silverstripe-framework/issues/3357
2018-08-29 14:47:06 +12:00

28 lines
714 B
YAML

SilverStripe\Forms\Tests\GridField\GridFieldTest\Team:
team1:
Name: Team 1
City: Cologne
team2:
Name: Team 2
City: Wellington
team3:
Name: Team 3
City: Auckland
team4:
Name: Team 4
City: Melbourne
SilverStripe\Forms\Tests\GridField\GridFieldTest\Cheerleader:
cheerleader1:
Name: Heather
Team: =>SilverStripe\Forms\Tests\GridField\GridFieldTest\Team.team1
cheerleader2:
Name: Bob
Team: =>SilverStripe\Forms\Tests\GridField\GridFieldTest\Team.team1
cheerleader3:
Name: Jenny
Team: =>SilverStripe\Forms\Tests\GridField\GridFieldTest\Team.team1
cheerleader4:
Name: Sam
Team: =>SilverStripe\Forms\Tests\GridField\GridFieldTest\Team.team1