mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8883413ba7
This new opt-in setting will let grid field detail forms redirect to the “Correct” URL of a GridField if it’s not found in the current list. This works by: * Looking for the item in the database * If it exists, check for a CMSEditLink() method that returns a value * If so, redirect to that This is useful if you have a number of grid fields that each show a partial list of records, and it’s possible for the user to make changes such the item no longer appears in the list, but does appear in another list. It’s an opt-in feature as I think all changes like this should be opt-in, based on previous experiences improving GridField and in turn breaking SecurityAdmin and slowing versioned-data-browsing down. ;-)
25 lines
754 B
YAML
25 lines
754 B
YAML
SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person:
|
|
joe:
|
|
FirstName: Joe
|
|
Surname: Bloggs
|
|
jane:
|
|
FirstName: Jane
|
|
Surname: Doe
|
|
jack:
|
|
FirstName: Jack
|
|
Surname: Doe
|
|
|
|
SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\PeopleGroup:
|
|
group:
|
|
Name: My Group
|
|
People:
|
|
- =>SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person.joe
|
|
- =>SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person.jane
|
|
|
|
SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Category:
|
|
category1:
|
|
Name: Category 1
|
|
People:
|
|
- =>SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person.joe
|
|
- =>SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person.jane
|