File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This module provides an easy way to build such tree and to add it to a page as a
1111
1212## Requirements
1313
14- * SilverStripe 4 .x
14+ * SilverStripe 5 .x
1515* (dnadesign/silvertsripe-elemental)[ https://github.com/dnadesign/silverstripe-elemental ]
1616
1717## Screenshots
Original file line number Diff line number Diff line change 1717 "minimum-stability" : " dev" ,
1818 "prefer-stable" : true ,
1919 "require" : {
20- "dnadesign/silverstripe-elemental" : " >=3 " ,
20+ "dnadesign/silverstripe-elemental" : " ^5 " ,
2121 "silvershop/silverstripe-hasonefield" : " ^3" ,
22- "unclecheese/display-logic" : " ^2.0"
22+ "unclecheese/display-logic" : " ^3"
23+ },
24+ "config" : {
25+ "allow-plugins" : {
26+ "composer/installers" : true ,
27+ "silverstripe/vendor-plugin" : true
28+ }
2329 }
2430}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function getCMSFields()
4040 // Update Parent Question
4141 $ question = $ fields ->dataFieldByName ('QuestionID ' );
4242 $ question ->setTitle ('Answer for ' );
43- $ fields ->insertBefore ($ question , 'Title ' );
43+ $ fields ->insertBefore ('Title ' , $ question );
4444
4545 if ($ this ->IsInDB ()) {
4646 // Set up Step Selector
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function getCMSFields()
6464 // Allow to hide the title only on Result
6565 $ hideTitle = CheckboxField::create ('HideTitle ' , 'Hide title ' );
6666 $ hideTitle ->displayIf ('Type ' )->isEqualTo ('Result ' )->end ();
67- $ fields ->insertAfter ($ hideTitle , 'Type ' );
67+ $ fields ->insertAfter ('Type ' , $ hideTitle );
6868
6969 if ($ this ->IsInDB ()) {
7070 // Display Parent Answer
You can’t perform that action at this time.
0 commit comments