Skip to content

Commit 26d8664

Browse files
committed
Merge remote-tracking branch 'origin/2.1-develop' into MAGETWO-67162
2 parents e00b0ff + 4d1b832 commit 26d8664

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

app/code/Magento/Backend/Block/Menu.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,12 @@ protected function _renderItemCssClass($menuItem, $level)
211211
protected function _renderAnchor($menuItem, $level)
212212
{
213213
if ($level == 1 && $menuItem->getUrl() == '#') {
214-
$output = '<strong class="submenu-group-title" role="presentation">'
215-
. '<span>' . $this->_getAnchorLabel($menuItem) . '</span>'
216-
. '</strong>';
214+
$output = '';
215+
if ($menuItem->hasChildren()) {
216+
$output = '<strong class="submenu-group-title" role="presentation">'
217+
. '<span>' . $this->_getAnchorLabel($menuItem) . '</span>'
218+
. '</strong>';
219+
}
217220
} else {
218221
$output = '<a href="' . $menuItem->getUrl() . '" ' . $this->_renderItemAnchorTitle(
219222
$menuItem

app/code/Magento/UrlRewrite/Block/Catalog/Product/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function _prepareLayoutFeatures()
5555
}
5656

5757
if ($this->_getProduct()->getId()) {
58-
$this->_addProductLinkBlock($this->_getProduct());
58+
$this->_addProductLinkBlock();
5959
}
6060

6161
if ($this->_getCategory()->getId()) {

app/code/Magento/Webapi/Model/Rest/Swagger/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Generator extends AbstractSchemaGenerator
3939
const UNAUTHORIZED_DESCRIPTION = '401 Unauthorized';
4040

4141
/** Array signifier */
42-
const ARRAY_SIGNIFIER = '[]';
42+
const ARRAY_SIGNIFIER = '[0]';
4343

4444
/**
4545
* Swagger factory instance.

lib/internal/Magento/Framework/Data/SearchResultProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ public function toArray($arrRequiredFields = [])
188188
}
189189

190190
/**
191-
* @param null $valueField
192-
* @param null $labelField
191+
* @param string|null $valueField
192+
* @param string|null $labelField
193193
* @param array $additional
194194
* @return array
195195
*/

0 commit comments

Comments
 (0)