mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
BUG: fixes for 3.1 version, updated function calls
This commit is contained in:
parent
71a988843a
commit
1198eb9228
@ -41,9 +41,15 @@ class GridFieldTestPage extends TestPage {
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
class GridFieldTestPage_Controller extends Page_Controller {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'Form',
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -5,6 +5,10 @@ class TestFileUploadPage extends TestPage{
|
||||
}
|
||||
|
||||
class TestFileUploadPage_Controller extends TestPage_Controller{
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'Form'
|
||||
);
|
||||
|
||||
function Form(){
|
||||
$fields = new FieldList(
|
||||
@ -25,6 +29,6 @@ class TestFileUploadPage_Controller extends TestPage_Controller{
|
||||
$member = new Member();
|
||||
$form->saveInto($member);
|
||||
$member->write();
|
||||
Director::redirectBack();
|
||||
$this->redirectBack();
|
||||
}
|
||||
}
|
@ -72,7 +72,7 @@ class TestPage_Controller extends Page_Controller {
|
||||
function save($data, $form) {
|
||||
$form->saveInto($this->dataRecord);
|
||||
$this->dataRecord->write();
|
||||
Director::redirectBack();
|
||||
$this->redirectBack();
|
||||
}
|
||||
|
||||
function gohome() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user