Skip to content

Commit 9db4501

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1551 from magento-engcom/2.2-develop-prs
Public Pull Requests #11229 #11223 #11168
2 parents 268dce1 + a0d2a7d commit 9db4501

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
class Index extends \Magento\Backend\App\Action
1010
{
11+
/**
12+
* Array of actions which can be processed without secret key validation
13+
*
14+
* @var string[]
15+
*/
16+
protected $_publicActions = ['index'];
17+
1118
/**
1219
* @var \Magento\Framework\View\Result\PageFactory
1320
*/

app/code/Magento/Catalog/view/frontend/templates/product/view/attribute.phtml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ $_attributeLabel = $block->getAtLabel();
2222
$_attributeType = $block->getAtType();
2323
$_attributeAddAttribute = $block->getAddAttribute();
2424

25+
$renderLabel = true;
26+
// if defined as 'none' in layout, do not render
27+
if ($_attributeLabel == 'none') {
28+
$renderLabel = false;
29+
}
30+
2531
if ($_attributeLabel && $_attributeLabel == 'default') {
2632
$_attributeLabel = $_product->getResource()->getAttribute($_code)->getStoreLabel();
2733
}
@@ -31,10 +37,9 @@ if ($_attributeType && $_attributeType == 'text') {
3137
$_attributeValue = $_helper->productAttribute($_product, $_product->$_call(), $_code);
3238
}
3339
?>
34-
3540
<?php if ($_attributeValue): ?>
3641
<div class="product attribute <?= /* @escapeNotVerified */ $_className ?>">
37-
<?php if ($_attributeLabel != 'none'): ?><strong class="type"><?= /* @escapeNotVerified */ $_attributeLabel ?></strong><?php endif; ?>
42+
<?php if ($renderLabel): ?><strong class="type"><?= /* @escapeNotVerified */ $_attributeLabel ?></strong><?php endif; ?>
3843
<div class="value" <?= /* @escapeNotVerified */ $_attributeAddAttribute ?>><?= /* @escapeNotVerified */ $_attributeValue ?></div>
3944
</div>
4045
<?php endif; ?>

app/code/Magento/Cms/Model/ResourceModel/Block/Collection.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ class Collection extends AbstractCollection
1818
*/
1919
protected $_idFieldName = 'block_id';
2020

21+
/**
22+
* Event prefix
23+
*
24+
* @var string
25+
*/
26+
protected $_eventPrefix = 'cms_block_collection';
27+
28+
/**
29+
* Event object
30+
*
31+
* @var string
32+
*/
33+
protected $_eventObject = 'block_collection';
34+
2135
/**
2236
* Perform operations after collection load
2337
*

app/code/Magento/Cms/Model/ResourceModel/Page/Collection.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ class Collection extends AbstractCollection
2525
*/
2626
protected $_previewFlag;
2727

28+
/**
29+
* Event prefix
30+
*
31+
* @var string
32+
*/
33+
protected $_eventPrefix = 'cms_page_collection';
34+
35+
/**
36+
* Event object
37+
*
38+
* @var string
39+
*/
40+
protected $_eventObject = 'page_collection';
41+
2842
/**
2943
* Define resource model
3044
*

0 commit comments

Comments
 (0)