mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #323 from ajoneil/fix-deprecation-notice
MINOR: Fix deprecation notice when saving user settings
This commit is contained in:
commit
e99ada4ebd
@ -1456,7 +1456,7 @@ class Member_ProfileForm extends Form {
|
||||
function dosave($data, $form) {
|
||||
// don't allow ommitting or changing the ID
|
||||
if(!isset($data['ID']) || $data['ID'] != Member::currentUserID()) {
|
||||
return Director::redirectBack();
|
||||
return $this->controller->redirectBack();
|
||||
}
|
||||
|
||||
$SQL_data = Convert::raw2sql($data);
|
||||
@ -1476,7 +1476,7 @@ class Member_ProfileForm extends Form {
|
||||
$message = _t('Member.PROFILESAVESUCCESS', 'Successfully saved.') . ' ' . $closeLink;
|
||||
$form->sessionMessage($message, 'good');
|
||||
|
||||
Director::redirectBack();
|
||||
$this->controller->redirectBack();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user