Skip to content

Commit

Permalink
Merge pull request #25 from lizardmedia/admin-incorrect-paths
Browse files Browse the repository at this point in the history
Fix for wrong paths in ui components
  • Loading branch information
Bartosz Kubicki authored Mar 19, 2020
2 parents 782a3d4 + a580b4f commit 4b1d001
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
* fix for not working (because of different reasons) file downloads on frontend

### 1.3.1 ###
* fix for adminthtml routes.xml
* fix for adminthtml routes.xml

### 1.3.2 ###
* fix for incorrect admin controller paths
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 @@ -272,7 +272,7 @@ private function getAttachmentColumn() : array
'fileInputName' => 'attachments',
'uploaderConfig' => [
'url' => $this->urlBuilder->addSessionParam()->getUrl(
'adminhtml/attachment_file/upload',
'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 @@ -148,7 +148,7 @@ private function addAttachmentFile(array $attachmentData, AttachmentInterface $a
'size' => $this->downloadableFile->getFileSize($file),
'status' => 'old',
'url' => $this->urlBuilder->addSessionParam()->getUrl(
'adminhtml/attachment_file/preview',
'downloadable/attachment_file/preview',
[AttachmentModel::ID => $attachment->getId(), '_secure' => true]
),
];
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"magento/module-ui": "*"
},
"type": "magento2-module",
"version": "1.3.1",
"version": "1.3.2",
"license": [
"MIT"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="LizardMedia_ProductAttachment" setup_version="1.3.1">
<module name="LizardMedia_ProductAttachment" setup_version="1.3.2">
<sequence>
<module name="Magento_Downloadable"/>
<module name="Magento_Catalog"/>
Expand Down

0 comments on commit 4b1d001

Please sign in to comment.