Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,12 @@ protected function checkUrlKeyDuplicates()
);
foreach ($urlKeyDuplicates as $entityData) {
$rowNum = $this->rowNumbers[$entityData['store_id']][$entityData['request_path']];
$this->addRowError(ValidatorInterface::ERROR_DUPLICATE_URL_KEY, $rowNum);
$message = sprintf(
$this->retrieveMessageTemplate(ValidatorInterface::ERROR_DUPLICATE_URL_KEY),
$entityData['request_path'],
$entityData['sku']
);
$this->addRowError(ValidatorInterface::ERROR_DUPLICATE_URL_KEY, $rowNum, 'url_key', $message);
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions app/code/Magento/Integration/Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
$setup->getConnection()->createTable($table);
}

if (version_compare($context->getVersion(), '2.2.1', '<')) {
$connection = $setup->getConnection();

$connection->addIndex(
$setup->getTable('oauth_nonce'),
$setup->getIdxName('oauth_nonce', ['timestamp']),
['timestamp']
);
}

$setup->endSetup();
}
}
2 changes: 1 addition & 1 deletion app/code/Magento/Integration/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_Integration" setup_version="2.2.0">
<module name="Magento_Integration" setup_version="2.2.1">
<sequence>
<module name="Magento_Store"/>
<module name="Magento_User"/>
Expand Down
7 changes: 4 additions & 3 deletions lib/internal/Magento/Framework/View/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public function renderNonCachedElement($name)
} elseif ($this->isBlock($name)) {
$result = $this->_renderBlock($name);
} else {
$result = $this->_renderContainer($name);
$result = $this->_renderContainer($name, false);
}
} catch (\Exception $e) {
if ($this->appState->getMode() === AppState::MODE_DEVELOPER) {
Expand Down Expand Up @@ -559,14 +559,15 @@ protected function _renderUiComponent($name)
* Gets HTML of container element
*
* @param string $name
* @param bool $useCache
* @return string
*/
protected function _renderContainer($name)
protected function _renderContainer($name, $useCache = true)
{
$html = '';
$children = $this->getChildNames($name);
foreach ($children as $child) {
$html .= $this->renderElement($child);
$html .= $this->renderElement($child, $useCache);
}
if ($html == '' || !$this->structure->getAttribute($name, Element::CONTAINER_OPT_HTML_TAG)) {
return $html;
Expand Down