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

View File

@ -217,7 +217,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
$idCondition=null; $idCondition=null;
if($this->append_to_top && !($list instanceof RelationList)) { 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) { if($this->append_to_top) {