mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
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:
commit
709bed209d
@ -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