UndefinedOffset / SortableGridField

Adds drag and drop functionality to Silverstripe's GridField
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Typo error #100

Closed cwchong closed 7 years ago

cwchong commented 7 years ago

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);

UndefinedOffset commented 7 years ago

fixed good catch :)