mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: implementing DocumentSort so that it doesn't break unit tests
This commit is contained in:
parent
8895b4f907
commit
179f2294e4
@ -32,11 +32,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
|||||||
'LastChanged'=>'LastChanged'
|
'LastChanged'=>'LastChanged'
|
||||||
);
|
);
|
||||||
|
|
||||||
static $default_sort = array(
|
|
||||||
'DocumentSort ASC'
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
static $singular_name = 'Document';
|
static $singular_name = 'Document';
|
||||||
|
|
||||||
static $plural_name = 'Documents';
|
static $plural_name = 'Documents';
|
||||||
|
@ -69,7 +69,7 @@ class DMSSiteTreeExtension extends DataExtension {
|
|||||||
$gridField = GridField::create(
|
$gridField = GridField::create(
|
||||||
'Documents',
|
'Documents',
|
||||||
false,
|
false,
|
||||||
$this->owner->Documents(),
|
$this->owner->Documents()->Sort('DocumentSort'),
|
||||||
$gridFieldConfig
|
$gridFieldConfig
|
||||||
);
|
);
|
||||||
$gridField->addExtraClass('documents');
|
$gridField->addExtraClass('documents');
|
||||||
|
Loading…
Reference in New Issue
Block a user