FIX Remove automatically scaffolded GridField for Site Tree Content Review in Member fields

This commit is contained in:
Robbie Averill 2018-03-22 17:09:57 +13:00
parent f5052ed511
commit dd7d1a70ec

View File

@ -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');
}
}