mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
4c3a068859
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
28 lines
714 B
YAML
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
|