mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Missing adaptions for PHP 7.2 (#124)
Two usages of `Object` have not been replaced with `SS_Object` in #123 .
This commit is contained in:
parent
e6c2bc712c
commit
e9bd2f498f
@ -301,7 +301,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
. '" SET "' . $sortColumn . '" = ' . ($max + $i)
|
||||
. ' WHERE "ID" = '. $obj->ID);
|
||||
|
||||
if(Object::has_extension($baseDataClass, 'Versioned')) {
|
||||
if(SS_Object::has_extension($baseDataClass, 'Versioned')) {
|
||||
DB::query('UPDATE "' . $baseDataClass . '_' . $this->update_versioned_stage
|
||||
. '" SET "LastEdited" = \'' . date('Y-m-d H:i:s') . '\''
|
||||
. ' WHERE "ID" = '. $obj->ID);
|
||||
@ -468,7 +468,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
. '" SET "' . $sortColumn . '" = ' . (($sort + 1) + $pageOffset)
|
||||
. ' WHERE "ID" = '. $id);
|
||||
|
||||
if(Object::has_extension($baseDataClass, 'Versioned')) {
|
||||
if(SS_Object::has_extension($baseDataClass, 'Versioned')) {
|
||||
DB::query('UPDATE "' . $baseDataClass . '_' . $this->update_versioned_stage
|
||||
. '" SET "LastEdited" = \'' . date('Y-m-d H:i:s') . '\''
|
||||
. ' WHERE "ID" = '. $id);
|
||||
|
Loading…
Reference in New Issue
Block a user