From a03b463c85f5ba524b2f91cc8e43ff8b86b37dd5 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Tue, 19 May 2020 03:49:16 +0200 Subject: [PATCH] Use SS_Object instead of Object --- src/Form/GridField/DetailForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/GridField/DetailForm.php b/src/Form/GridField/DetailForm.php index 9528f02..104dbfa 100644 --- a/src/Form/GridField/DetailForm.php +++ b/src/Form/GridField/DetailForm.php @@ -47,7 +47,7 @@ public function handleVersionedItem($gridField, $request) { if (!$this->getValidator() && ( method_exists($record, 'getCMSValidator') - || $record instanceof \Object && $record->hasMethod('getCMSValidator') + || $record instanceof \SS_Object && $record->hasMethod('getCMSValidator') ) ) { /** @noinspection PhpUndefinedMethodInspection */