Skip to content

Commit b05a957

Browse files
Merge pull request #1734 from magento-engcom/2.2-develop-prs
[EngCom] Public Pull Requests - 2.2-develop - MAGETWO-84098: Webshop throws an exception when sharing wishlist with RSS enabled #12276 - MAGETWO-84081: 9684: No ACL set for integrations #12332 - MAGETWO-84006: Fix robots.txt content type to 'text/plain' #12310 - MAGETWO-83977: Handle empty or incorrect lines in a language CSV #12304
2 parents f2f94cf + 56e8d72 commit b05a957

File tree

6 files changed

+30
-5
lines changed

6 files changed

+30
-5
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
9+
<acl>
10+
<resources>
11+
<resource id="Magento_Backend::admin">
12+
<resource id="Magento_Backend::system">
13+
<resource id="Magento_Integration::extensions" title="System Extensions" translate="title" sortOrder="30">
14+
<resource id="Magento_Integration::integrations" title="System Integrations" translate="title" sortOrder="40" />
15+
</resource>
16+
</resource>
17+
</resource>
18+
</resources>
19+
</acl>
20+
</config>

app/code/Magento/Robots/Controller/Index/Index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function execute()
4343
/** @var Page $resultPage */
4444
$resultPage = $this->resultPageFactory->create(true);
4545
$resultPage->addHandle('robots_index_index');
46+
$resultPage->setHeader('Content-Type', 'text/plain');
4647
return $resultPage;
4748
}
4849
}

app/code/Magento/Robots/Test/Unit/Controller/Index/IndexTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public function testExecute()
5151
$resultPageMock->expects($this->once())
5252
->method('addHandle')
5353
->with('robots_index_index');
54+
$resultPageMock->expects($this->once())
55+
->method('setHeader')
56+
->with('Content-Type', 'text/plain');
5457

5558
$this->resultPageFactory->expects($this->any())
5659
->method('create')

app/code/Magento/Wishlist/view/frontend/layout/wishlist_email_rss.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
10-
<referenceContainer name="root">
11-
<block class="Magento\Wishlist\Block\Rss\EmailLink" name="wishlist.email.rss" cacheable="false"/>
12-
</referenceContainer>
10+
<block class="Magento\Wishlist\Block\Rss\EmailLink" name="wishlist.email.rss" cacheable="false"/>
1311
</body>
1412
</page>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
four and 75/100,4.75
2-
four and 5/10,4.50
2+
four and 5/10,4.50
3+

lib/internal/Magento/Framework/App/Language/Dictionary.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ private function readPackCsv($vendor, $package)
193193
foreach ($foundCsvFiles as $foundCsvFile) {
194194
$file = $directoryRead->openFile($foundCsvFile);
195195
while (($row = $file->readCsv()) !== false) {
196-
$result[$row[0]] = $row[1];
196+
if (is_array($row) && count($row) > 1) {
197+
$result[$row[0]] = $row[1];
198+
}
197199
}
198200
}
199201
}

0 commit comments

Comments
 (0)