TreeDropdownField::setDisableFunction() has no visual or functionality affects in at least 2.1.17 (but likely in 2.0 as well), where as in 1.13.22 the options are faded and not clickable. In 1.13.22 this appears like the below:
Note in 1.13 this will properly allow selection at any depth.
How to reproduce
To Reproduce create a Test Page type for example:
class TestPage extends Page {}
Then seed a mix of page types in the page tree including at least one TestPage at any depth and add a TreeDropdownField to another object that has a disable function that simply checks to see if the incoming page is an instance of TestPage.
Module version(s) affected
2.1.17
Description
TreeDropdownField::setDisableFunction()
has no visual or functionality affects in at least 2.1.17 (but likely in 2.0 as well), where as in 1.13.22 the options are faded and not clickable. In 1.13.22 this appears like the below:Note in 1.13 this will properly allow selection at any depth.
How to reproduce
To Reproduce create a Test Page type for example:
Then seed a mix of page types in the page tree including at least one
TestPage
at any depth and add aTreeDropdownField
to another object that has a disable function that simply checks to see if the incoming page is an instance ofTestPage
.Possible Solution
No response
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)