Merge pull request #82 from creative-commoners/pulls/4.0/member-profile-fix

FIX Remove automatically scaffolded GridField for Site Tree Content Review in Member fields
This commit is contained in:
Dylan Wagstaff 2018-03-26 11:21:46 +13:00 committed by GitHub
commit 709bed209d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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