Skip to content

Commit

Permalink
Merge pull request #31 from lizardmedia/removing-session-param-usage
Browse files Browse the repository at this point in the history
Compatibility fix for magento 2.3.5
  • Loading branch information
Bartosz Kubicki authored May 7, 2020
2 parents aab577d + cff8052 commit b57fc1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@

### 1.3.3 ###
* enterprise magento version compatibility patch
* minor refactor
* minor refactor
* compatibility fix for magento CE 2.3.5
2 changes: 1 addition & 1 deletion Ui/DataProvider/Product/Form/Modifier/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
),
Expand Down
2 changes: 1 addition & 1 deletion Ui/DataProvider/Product/Form/Modifier/Data/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
),
Expand Down

0 comments on commit b57fc1f

Please sign in to comment.