mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #250 from deracs/master
Can't reorder many many versioned classes
This commit is contained in:
commit
b93a8f28ac
@ -531,8 +531,12 @@ class GridFieldOrderableRows extends RequestHandler implements
|
|||||||
|
|
||||||
// If not a ManyManyList and using versioning, detect it.
|
// If not a ManyManyList and using versioning, detect it.
|
||||||
$this->validateSortField($list);
|
$this->validateSortField($list);
|
||||||
|
$isVersioned = false;
|
||||||
$class = $list->dataClass();
|
$class = $list->dataClass();
|
||||||
$isVersioned = $class::has_extension(Versioned::class);
|
|
||||||
|
if (DataObject::getSchema()->tableName($class) == $this->getSortTable($list)) {
|
||||||
|
$isVersioned = $class::has_extension(Versioned::class);
|
||||||
|
}
|
||||||
|
|
||||||
// Loop through each item, and update the sort values which do not
|
// Loop through each item, and update the sort values which do not
|
||||||
// match to order the objects.
|
// match to order the objects.
|
||||||
|
Loading…
Reference in New Issue
Block a user