diff --git a/code/Extensions/RemoteFileModalExtension.php b/code/Extensions/RemoteFileModalExtension.php index 8a1227fc7..f878d5296 100644 --- a/code/Extensions/RemoteFileModalExtension.php +++ b/code/Extensions/RemoteFileModalExtension.php @@ -126,7 +126,7 @@ public function remoteEditFormSchema(HTTPRequest $request) protected function getSchemaResponse($schemaID, $form = null, ValidationResult $errors = null, $extraData = []) { Deprecation::noticeWithNoReplacment('2.4.0', 'Will be replaced with $this->getOwner()->getSchemaResponse() instead.'); - $parts = $this->getOwner()->getRequest()->getHeader(LeftAndMain::SCHEMA_HEADER); + $parts = $this->getOwner()->getRequest()->getHeader(FormSchema::SCHEMA_HEADER); $data = $this ->getFormSchema() ->getMultipartSchema($parts, $schemaID, $form, $errors);