Skip to content

Commit cc1794b

Browse files
author
Stanislav Idolov
authored
ENGCOM-2540: [Forwardport] Remove commented code #17133
2 parents 3d1cbbc + 8e373bb commit cc1794b

File tree

7 files changed

+2
-36
lines changed

7 files changed

+2
-36
lines changed

app/code/Magento/Backend/Block/Dashboard/Bar.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ public function getTotals()
3838
*/
3939
public function addTotal($label, $value, $isQuantity = false)
4040
{
41-
/*if (!$isQuantity) {
42-
$value = $this->format($value);
43-
$decimals = substr($value, -2);
44-
$value = substr($value, 0, -2);
45-
} else {
46-
$value = ($value != '')?$value:0;
47-
$decimals = '';
48-
}*/
4941
if (!$isQuantity) {
5042
$value = $this->format($value);
5143
}

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getElementHtml()
102102
*/
103103
public function getImages()
104104
{
105-
return $this->registry->registry('current_product')->getData('media_gallery') ?: null;
105+
return $this->getDataObject()->getData('media_gallery') ?: null;
106106
}
107107

108108
/**

app/code/Magento/Newsletter/Block/Adminhtml/Template/Edit.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ public function getModel()
6767
*/
6868
protected function _prepareLayout()
6969
{
70-
// Load Wysiwyg on demand and Prepare layout
71-
// $block = $this->getLayout()->getBlock('head');
72-
// if ($this->_wysiwygConfig->isEnabled() && $block) {
73-
// $block->setCanLoadTinyMce(true);
74-
// }
75-
7670
$this->getToolbar()->addChild(
7771
'back_button',
7872
\Magento\Backend\Block\Widget\Button::class,

app/code/Magento/Review/Block/Adminhtml/Add/Form.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ protected function _prepareForm()
142142

143143
$fieldset->addField('product_id', 'hidden', ['name' => 'product_id']);
144144

145-
/*$gridFieldset = $form->addFieldset('add_review_grid', array('legend' => __('Please select a product')));
146-
$gridFieldset->addField('products_grid', 'note', array(
147-
'text' => $this->getLayout()->createBlock(\Magento\Review\Block\Adminhtml\Product\Grid::class)->toHtml(),
148-
));*/
149-
150145
$form->setMethod('post');
151146
$form->setUseContainer(true);
152147
$form->setId('edit_form');

app/code/Magento/Sales/Model/Order/Creditmemo.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -582,13 +582,6 @@ public function getCommentsCollection($reload = false)
582582
{
583583
$collection = $this->_commentCollectionFactory->create()->setCreditmemoFilter($this->getId())
584584
->setCreatedAtOrder();
585-
//
586-
// $this->setComments($comments);
587-
// /**
588-
// * When credit memo created with adding comment,
589-
// * comments collection must be loaded before we added this comment.
590-
// */
591-
// $this->getComments()->load();
592585

593586
if ($this->getId()) {
594587
foreach ($collection as $comment) {

app/code/Magento/Sales/view/adminhtml/templates/order/totals.phtml

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

99
?>
10-
<?php /*$_source = $block->getSource(); ?>
11-
<?php $block->setPriceDataObject($_source) ?>
12-
<?php if ($_source): ?>
13-
<table width="100%">
14-
<?= $block->getChildHtml('main') ?>
15-
<?= $block->getChildHtml('footer') ?>
16-
</table>
17-
<?php endif;*/ ?>
1810
<table class="data-table admin__table-secondary order-subtotal-table">
1911
<?php $_totals = $block->getTotals('footer')?>
2012

dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private function isItTest($relativeFilePath)
232232
*/
233233
private function getControllerPath($relativeFilePath)
234234
{
235-
if (preg_match('~(Magento\/.*Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) {
235+
if (preg_match('~(Magento\/[^\/]+\/Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) {
236236
if (count($matches) === 2) {
237237
$partPath = $matches[1];
238238
return $partPath;

0 commit comments

Comments
 (0)