Fixed bug causing the ancestry to not be looked at correctly when trying to find the sort column (Fixes #100)
This commit is contained in:
parent
06517fc3af
commit
09b295d10d
|
@ -559,7 +559,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||||
$table=false;
|
$table=false;
|
||||||
$classes=ClassInfo::ancestry($className, true);
|
$classes=ClassInfo::ancestry($className, true);
|
||||||
foreach($classes as $class) {
|
foreach($classes as $class) {
|
||||||
$db = Config::inst()->get($className, "db", CONFIG::UNINHERITED);
|
$db = Config::inst()->get($class, "db", CONFIG::UNINHERITED);
|
||||||
if(!empty($db) && array_key_exists($sortColumn, $db)) {
|
if(!empty($db) && array_key_exists($sortColumn, $db)) {
|
||||||
$table=$class;
|
$table=$class;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue