mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00: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
|
* @param DataList $list
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getSortTable(DataList $list) {
|
public function getSortTable(SS_List $list) {
|
||||||
$field = $this->getSortField();
|
$field = $this->getSortField();
|
||||||
|
|
||||||
if($list instanceof ManyManyList) {
|
if($list instanceof ManyManyList) {
|
||||||
@ -219,7 +219,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getColumnMetadata($grid, $col) {
|
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'] : '');
|
return array('title' => isset($fieldLabels['Reorder']) ? $fieldLabels['Reorder'] : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user