mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Removed $params argument to DataObject->getCMSFields(), please use FormScaffolder directly (fixes #7135)
This commit is contained in:
parent
b127419f76
commit
dc0168d01b
@ -129,8 +129,8 @@ class ErrorPage extends Page {
|
||||
}
|
||||
}
|
||||
|
||||
function getCMSFields($params = null) {
|
||||
$fields = parent::getCMSFields($params);
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
$fields->addFieldToTab(
|
||||
"Root.Main",
|
||||
|
@ -117,7 +117,7 @@ class RedirectorPage extends Page {
|
||||
}
|
||||
}
|
||||
|
||||
function getCMSFields($params = null) {
|
||||
function getCMSFields() {
|
||||
Requirements::javascript(CMS_DIR . '/javascript/RedirectorPage.js');
|
||||
|
||||
$fields = parent::getCMSFields();
|
||||
|
@ -41,7 +41,7 @@ class SiteConfig extends DataObject implements PermissionProvider {
|
||||
*
|
||||
* @return FieldList
|
||||
*/
|
||||
function getCMSFields($params = null) {
|
||||
function getCMSFields() {
|
||||
Requirements::javascript(CMS_DIR . "/javascript/SitetreeAccess.js");
|
||||
|
||||
$groupsMap = DataList::create('Group')->map('ID', 'Breadcrumbs')->toArray();
|
||||
|
@ -1745,7 +1745,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
*
|
||||
* @return FieldList The fields to be displayed in the CMS.
|
||||
*/
|
||||
function getCMSFields($params = null) {
|
||||
function getCMSFields() {
|
||||
require_once("forms/Form.php");
|
||||
// Status / message
|
||||
// Create a status message for multiple parents
|
||||
|
@ -165,8 +165,8 @@ class VirtualPage extends Page {
|
||||
/**
|
||||
* Generate the CMS fields from the fields from the original page.
|
||||
*/
|
||||
function getCMSFields($cms = null) {
|
||||
$fields = parent::getCMSFields($cms);
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
// Setup the linking to the original page.
|
||||
$copyContentFromField = new TreeDropdownField(
|
||||
|
@ -34,7 +34,7 @@ class Widget extends DataObject {
|
||||
static $cmsTitle = "Name of this widget";
|
||||
static $description = "Description of what this widget does.";
|
||||
|
||||
function getCMSFields($params = null) {
|
||||
function getCMSFields() {
|
||||
$fields = new FieldList();
|
||||
$this->extend('updateCMSFields', $fields);
|
||||
return $fields;
|
||||
|
@ -114,7 +114,7 @@ class CMSMainTest extends FunctionalTest {
|
||||
$page->flushCache();
|
||||
$page = DataObject::get_by_id("SiteTree", $page->ID);
|
||||
|
||||
$this->assertTrue($page->getCMSFields(null) instanceof FieldList);
|
||||
$this->assertTrue($page->getCMSFields() instanceof FieldList);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -460,7 +460,7 @@ class WidgetAreaEditorTest_TestWidget extends Widget implements TestOnly {
|
||||
static $db = array(
|
||||
'Title' => 'Varchar'
|
||||
);
|
||||
public function getCMSFields($params = null) {
|
||||
public function getCMSFields() {
|
||||
$fields = new FieldList();
|
||||
$fields->push(new TextField('Title'));
|
||||
return $fields;
|
||||
|
Loading…
Reference in New Issue
Block a user