From c51e31c608870504d7000c5a3200af03464a137d Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 26 Feb 2025 13:24:02 +1300 Subject: [PATCH] API Stop using deprecated LeftAndMain::SCHEMA_HEADER const --- code/Extensions/RemoteFileModalExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);