BUG: fixes for 3.1 version, updated function calls

This commit is contained in:
Michael Andrewartha 2014-02-18 10:04:11 +13:00
parent 71a988843a
commit 1198eb9228
3 changed files with 12 additions and 2 deletions

View File

@ -41,10 +41,16 @@ class GridFieldTestPage extends TestPage {
return $fields;
}
}
class GridFieldTestPage_Controller extends Page_Controller {
private static $allowed_actions = array(
'Form',
);
/**
*
* @var string

View File

@ -6,6 +6,10 @@ class TestFileUploadPage extends TestPage{
class TestFileUploadPage_Controller extends TestPage_Controller{
private static $allowed_actions = array(
'Form'
);
function Form(){
$fields = new FieldList(
new EmailField('Email', 'EmailField'),
@ -25,6 +29,6 @@ class TestFileUploadPage_Controller extends TestPage_Controller{
$member = new Member();
$form->saveInto($member);
$member->write();
Director::redirectBack();
$this->redirectBack();
}
}

View File

@ -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() {