UndefinedOffset/SortableGridField

Typo error

cwchong opened this issue · 1 comments

approx line 560:

    $classes=ClassInfo::ancestry($className, true);
	foreach($classes as $class) {
		$db = Config::inst()->get($className, "db", CONFIG::UNINHERITED); // <-------
		if(!empty($db) && array_key_exists($sortColumn, $db)) {
			$table=$class;
			break;
		}
	}

the variable in the highlighted line should be $class instead of $className:
$db = Config::inst()->get($class, "db", CONFIG::UNINHERITED);

fixed good catch :)