mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
Merge pull request #1967 from tractorcow/3.1-versioned-updatecmsfields-fix
BUG Fixed declaration of Versioned::updateCMSFields
This commit is contained in:
commit
e2553fa864
@ -1316,7 +1316,7 @@ class Versioned extends DataExtension {
|
|||||||
/**
|
/**
|
||||||
* @param FieldList
|
* @param FieldList
|
||||||
*/
|
*/
|
||||||
public function updateCMSFields(&$fields) {
|
public function updateCMSFields(FieldList $fields) {
|
||||||
// remove the version field from the CMS as this should be left
|
// remove the version field from the CMS as this should be left
|
||||||
// entirely up to the extension (not the cms user).
|
// entirely up to the extension (not the cms user).
|
||||||
$fields->removeByName('Version');
|
$fields->removeByName('Version');
|
||||||
|
Loading…
Reference in New Issue
Block a user