From e9bd2f498ff0a6d3c25f00e0d715fa497dee35dd Mon Sep 17 00:00:00 2001 From: th3hamm0r Date: Tue, 25 Sep 2018 14:39:22 +0200 Subject: [PATCH] Missing adaptions for PHP 7.2 (#124) Two usages of `Object` have not been replaced with `SS_Object` in #123 . --- code/forms/GridFieldSortableRows.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index f9fbebb..a61274d 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -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);