FIX Not being able to save when viewing page settings

This commit is contained in:
Hamish Friedlander 2016-05-09 16:43:19 +12:00
parent d52058a4fd
commit 1263bf8a04

View File

@ -12,9 +12,9 @@ class CMSPageSettingsController extends CMSMain {
private static $session_namespace = 'CMSMain';
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) {