diff --git a/src/GraphQL/ObjectGraphQlEx.php b/src/GraphQL/ObjectGraphQlEx.php index 438adbe..4515f35 100644 --- a/src/GraphQL/ObjectGraphQlEx.php +++ b/src/GraphQL/ObjectGraphQlEx.php @@ -39,7 +39,7 @@ class ObjectGraphQlEx extends DataExtension public function isFormResponse() { $curr = Controller::curr(); - $req = $this->getRequest(); + $req = $curr->getRequest(); return $req->requestVar('SecurityID') || $req->httpMethod() === 'POST'; }