mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
FIX Swap DataList code to SS_List
And remove a reference to a DataList method to rely on the GridField method instead
This commit is contained in:
parent
50ffec51e4
commit
d72288125a
@ -143,7 +143,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
* @param DataList $list
|
||||
* @return string
|
||||
*/
|
||||
public function getSortTable(DataList $list) {
|
||||
public function getSortTable(SS_List $list) {
|
||||
$field = $this->getSortField();
|
||||
|
||||
if($list instanceof ManyManyList) {
|
||||
@ -219,7 +219,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
}
|
||||
|
||||
public function getColumnMetadata($grid, $col) {
|
||||
if ($fieldLabels = singleton($grid->list->dataClass)->fieldLabels()) {
|
||||
if ($fieldLabels = singleton($grid->getModelClass())->fieldLabels()) {
|
||||
return array('title' => isset($fieldLabels['Reorder']) ? $fieldLabels['Reorder'] : '');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user