diff --git a/CHANGELOG.md b/CHANGELOG.md index b5b890f..29bee3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,4 +31,5 @@ ### 1.3.3 ### * enterprise magento version compatibility patch -* minor refactor \ No newline at end of file +* minor refactor +* compatibility fix for magento CE 2.3.5 \ No newline at end of file diff --git a/Ui/DataProvider/Product/Form/Modifier/Attachments.php b/Ui/DataProvider/Product/Form/Modifier/Attachments.php index 008a3cd..9e252e5 100644 --- a/Ui/DataProvider/Product/Form/Modifier/Attachments.php +++ b/Ui/DataProvider/Product/Form/Modifier/Attachments.php @@ -271,7 +271,7 @@ private function getAttachmentColumn() : array 'elementTmpl' => 'Magento_Downloadable/components/file-uploader', 'fileInputName' => 'attachments', 'uploaderConfig' => [ - 'url' => $this->urlBuilder->addSessionParam()->getUrl( + 'url' => $this->urlBuilder->getUrl( 'downloadable/attachment_file/upload', [Attachment::ATTACHMENT_TYPE => 'attachments', '_secure' => true] ), diff --git a/Ui/DataProvider/Product/Form/Modifier/Data/Attachments.php b/Ui/DataProvider/Product/Form/Modifier/Data/Attachments.php index f191b2e..aa4cd75 100644 --- a/Ui/DataProvider/Product/Form/Modifier/Data/Attachments.php +++ b/Ui/DataProvider/Product/Form/Modifier/Data/Attachments.php @@ -147,7 +147,7 @@ private function addAttachmentFile(array $attachmentData, AttachmentInterface $a 'name' => $this->downloadableFile->getFileFromPathFile($attachmentFile), 'size' => $this->downloadableFile->getFileSize($file), 'status' => 'old', - 'url' => $this->urlBuilder->addSessionParam()->getUrl( + 'url' => $this->urlBuilder->getUrl( 'downloadable/attachment_file/preview', [AttachmentModel::ID => $attachment->getId(), '_secure' => true] ),