Merge pull request #132 from robbieaverill/pulls/2.0/remove-autocompleter-for-document-sets

FIX Remove add existing autocompleter for document sets on a page
This commit is contained in:
sachajudd 2017-05-18 15:36:14 +12:00 committed by GitHub
commit 84abd5d837

View File

@ -24,6 +24,8 @@ class DMSSiteTreeExtension extends DataExtension
);
$gridField->addExtraClass('documentsets');
$gridField->getConfig()->removeComponentsByType('GridFieldAddExistingAutocompleter');
$fields->addFieldToTab(
'Root.Document Sets (' . $this->owner->DocumentSets()->count() . ')',
$gridField