mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
FIX Remove automatically scaffolded GridField for Site Tree Content Review in Member fields
This commit is contained in:
parent
f5052ed511
commit
dd7d1a70ec
@ -3,11 +3,9 @@
|
||||
namespace SilverStripe\ContentReview\Extensions;
|
||||
|
||||
use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Description of GroupContentReview.
|
||||
*/
|
||||
class ContentReviewOwner extends DataExtension
|
||||
{
|
||||
/**
|
||||
@ -16,4 +14,10 @@ class ContentReviewOwner extends DataExtension
|
||||
private static $many_many = [
|
||||
"SiteTreeContentReview" => SiteTree::class,
|
||||
];
|
||||
|
||||
public function updateCMSFields(FieldList $fields)
|
||||
{
|
||||
// Remove automatically scaffolded GridField in Member CMS fields
|
||||
$fields->removeByName('SiteTreeContentReview');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user