Fixed issue where append to top would not correct the order properly in model admin fixes #71

This commit is contained in:
UndefinedOffset 2015-05-07 12:44:55 -03:00
parent 9ce8bca316
commit 81e8fae97a
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
$idCondition=null;
if($this->append_to_top && !($list instanceof RelationList)) {
$idCondition='"ID" IN(\''.implode("','", $list->getIDList()).'\')';
$idCondition='"ID" IN(\''.implode("','", $dataList->getIDList()).'\')';
}
if($this->append_to_top) {