mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #212 from sekjal/patch-1
Add support for GridfieldOrderableRows
This commit is contained in:
commit
d94aa25ac7
@ -112,6 +112,8 @@ class DMSDocumentSet extends DataObject
|
|||||||
|
|
||||||
if (class_exists('GridFieldSortableRows')) {
|
if (class_exists('GridFieldSortableRows')) {
|
||||||
$gridFieldConfig->addComponent(new GridFieldSortableRows('DocumentSort'));
|
$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
|
// Don't show which page this is if we're already editing within a page context
|
||||||
|
Loading…
Reference in New Issue
Block a user