silverstripe-framework/tests/php/Forms
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
..
CheckboxFieldtest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
CheckboxSetFieldTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DatetimeFieldTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
EmailFieldTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FormFactoryTest Update file paths for autoloading compatibility 2020-04-25 10:28:28 +01:00
FormFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FormRequestHandlerTest Update file paths for autoloading compatibility 2020-04-25 10:28:28 +01:00
FormScaffolderTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FormSchemaTest Fix tests 2017-12-08 09:58:52 +13:00
FormTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
GridField NEW: Add GridFieldDetailForm::setRedirectMissingRecords() 2021-05-21 13:16:00 +12:00
HTMLEditor Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ListboxFieldTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
MoneyFieldTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
NumericFieldTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ValidatorTest Use ReflectionClass for CompositeValidator tests 2020-05-28 11:18:46 +12:00
CheckboxFieldReadonlyTest.php Rename CheckboxFieldReadonlyTest for future PSR-2 compatibility 2018-11-10 10:04:17 +02:00
CheckboxFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
CheckboxSetFieldMultiEnumTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
CheckboxSetFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
CheckboxSetFieldTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
CompositeFieldTest.php Update exception assertions in tests and remove deprecated annotations 2020-09-25 10:06:49 -07:00
CompositeValidatorTest.php Linting fix 2020-06-08 09:35:00 +12:00
ConfirmedPasswordFieldTest.php FIX: Fix bug when confirmed password is changed but not the password. (#9012) 2019-06-10 15:48:29 +12:00
CurrencyFieldDisabledTest.php Remove underscores from variable test class names 2018-11-10 14:55:11 +02:00
CurrencyFieldReadonlyTest.php Remove underscores from variable test class names 2018-11-10 14:55:11 +02:00
CurrencyFieldTest.php Add tests for edge cases in CurrencyField 2018-10-20 17:33:59 +02:00
DatalessFieldTest.php Add tests for DatalessField 2018-10-20 17:59:55 +02:00
DateFieldDisabledTest.php Remove underscores from variable test class names 2018-11-10 14:55:11 +02:00
DateFieldTest.php Add edge case unit tests for DateField 2018-10-20 18:15:42 +02:00
DatetimeFieldTest.php DOCS: Remove outdated TODO 2020-04-14 15:00:08 +05:45
DefaultFormFactoryTest.php Add tests for DefaultFormFactory 2018-10-20 19:47:11 +02:00
DisabledTransformationTest.php Add tests for DisabledTransformation, PrintableTransformation and PrintableTransformation_TabSet 2018-10-20 20:06:02 +02:00
DropdownFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
EmailFieldTest.php FIX Minor updates to unit tests to pass with HTML5 parser and various themes 2018-06-01 17:47:03 +12:00
EnumFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FieldGroupTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FieldListTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FileFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FormActionTest.php BUG FormAction title property cannot be set if useButtonTag is false 2019-10-29 17:21:45 +13:00
FormFactoryTest.php API Refactor bootstrap, request handling 2017-06-22 22:50:45 +12:00
FormFactoryTest.yml Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FormFieldTest.php [CVE-2019-19325] XSS through non-scalar FormField attributes 2020-02-17 09:58:29 +13:00
FormRequestHandlerTest.php [ss-2018-013] Remove password text from session data on failed submission 2018-05-14 17:14:38 +12:00
FormScaffolderTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FormScaffolderTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
FormSchemaTest.php Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
FormTest.php FIX Avoid test failure on use of narrow-NBSP (#9725) 2020-10-09 10:33:51 +13:00
FormTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
GroupedDropdownFieldTest.php Backport fix to GroupedDropdownFieldTest 2020-08-19 11:21:46 +12:00
ListboxFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ListboxFieldTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
LookupFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
LookupFieldTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
MoneyFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
NullableFieldTests.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
NumericFieldTest.php FIX Avoid test failure on use of narrow-NBSP (#9725) 2020-10-09 10:33:51 +13:00
OptionsetFieldTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
PasswordFieldTest.php [ss-2018-013] Remove password text from session data on failed submission 2018-05-14 17:14:38 +12:00
PopoverFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
PrintableTransformationTabSetTest.php Remove underscores from variable test class names 2018-11-10 14:55:11 +02:00
PrintableTransformationTest.php Add tests for DisabledTransformation, PrintableTransformation and PrintableTransformation_TabSet 2018-10-20 20:06:02 +02:00
RequiredFieldsTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SelectionGroupTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SingleLookupFieldTest.php LookupField value handling corrected (atomic values are no longer thrown away). 2018-04-23 15:15:40 +12:00
TextareaFieldTest.php Merge branch '3' 2016-12-28 14:30:54 +00:00
TextFieldTest.php NEW Extract Tip from TextField, add test coverage 2019-10-22 17:04:58 +13:00
TimeFieldReadonlyTest.php BUGFIX: Fixed issue where TimeField_Readonly would only show "(not set)" instead of the value 2020-02-24 09:59:00 -04:00
TimeFieldTest.php MERGE 2017-04-03 12:11:21 +12:00
TipTest.php NEW Add type declarations to Tip API, add TippableFieldInterface 2019-10-23 10:46:22 +13:00
TreeDropdownFieldTest.php Merge branch '4.6' into 4.7 2021-05-03 14:21:20 +12:00
TreeDropdownFieldTest.yml FIX Explicity mark nodes when searching nodes in TreeDropdownField #8621 2018-11-21 11:43:21 +13:00
TreeMultiselectFieldTest.php BUG Fix PostgreSQL issue in TreeMultiselectField where field would try to filter list by a blank ID 2021-01-20 12:23:09 +13:00
ValidatorTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00