silverstripe-framework/tests/php/Forms/GridField/GridFieldDetailFormTest
Sam Minnee 8883413ba7 NEW: Add GridFieldDetailForm::setRedirectMissingRecords()
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. ;-)
2021-05-21 13:16:00 +12:00
..
Category.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
CategoryController.php NEW: Add GridFieldDetailForm::setRedirectMissingRecords() 2021-05-21 13:16:00 +12:00
GroupController.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ItemRequest.php API Namespace framework tests 2016-11-23 19:25:12 +13:00
PeopleGroup.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
Person.php NEW: Add GridFieldDetailForm::setRedirectMissingRecords() 2021-05-21 13:16:00 +12:00
TestController.php NEW: Add GridFieldDetailForm::setRedirectMissingRecords() 2021-05-21 13:16:00 +12:00