mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX Not being able to save when viewing page settings
This commit is contained in:
parent
d52058a4fd
commit
1263bf8a04
@ -12,9 +12,9 @@ class CMSPageSettingsController extends CMSMain {
|
|||||||
private static $session_namespace = 'CMSMain';
|
private static $session_namespace = 'CMSMain';
|
||||||
|
|
||||||
public function getEditForm($id = null, $fields = null) {
|
public function getEditForm($id = null, $fields = null) {
|
||||||
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
$record = $this->getRecord($id ?: $this->currentPageID());
|
||||||
|
|
||||||
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
return parent::getEditForm($id, ($record) ? $record->getSettingsFields() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Breadcrumbs($unlinked = false) {
|
public function Breadcrumbs($unlinked = false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user