Merge pull request #212 from sekjal/patch-1

Add support for GridfieldOrderableRows
This commit is contained in:
Robbie Averill 2018-06-19 09:13:24 +12:00 committed by GitHub
commit d94aa25ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ class DMSDocumentSet extends DataObject
if (class_exists('GridFieldSortableRows')) {
$gridFieldConfig->addComponent(new GridFieldSortableRows('DocumentSort'));
} elseif (class_exists('GridFieldOrderableRows')) {
$gridFieldConfig->addComponent(new GridFieldOrderableRows('DocumentSort'));
}
// Don't show which page this is if we're already editing within a page context