Skip to content

Commit

Permalink
Use SS_Object instead of Object
Browse files Browse the repository at this point in the history
  • Loading branch information
Zauberfisch committed May 19, 2020
1 parent 32d47b2 commit a03b463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/GridField/DetailForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a03b463

Please sign in to comment.