File tree 7 files changed +2
-36
lines changed
Catalog/Block/Adminhtml/Product/Helper/Form
Newsletter/Block/Adminhtml/Template
Review/Block/Adminhtml/Add
view/adminhtml/templates/order
dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend
7 files changed +2
-36
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,6 @@ public function getTotals()
38
38
*/
39
39
public function addTotal ($ label , $ value , $ isQuantity = false )
40
40
{
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
- }*/
49
41
if (!$ isQuantity ) {
50
42
$ value = $ this ->format ($ value );
51
43
}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public function getElementHtml()
102
102
*/
103
103
public function getImages ()
104
104
{
105
- return $ this ->registry -> registry ( ' current_product ' )->getData ('media_gallery ' ) ?: null ;
105
+ return $ this ->getDataObject ( )->getData ('media_gallery ' ) ?: null ;
106
106
}
107
107
108
108
/**
Original file line number Diff line number Diff line change @@ -67,12 +67,6 @@ public function getModel()
67
67
*/
68
68
protected function _prepareLayout ()
69
69
{
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
-
76
70
$ this ->getToolbar ()->addChild (
77
71
'back_button ' ,
78
72
\Magento \Backend \Block \Widget \Button::class,
Original file line number Diff line number Diff line change @@ -142,11 +142,6 @@ protected function _prepareForm()
142
142
143
143
$ fieldset ->addField ('product_id ' , 'hidden ' , ['name ' => 'product_id ' ]);
144
144
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
-
150
145
$ form ->setMethod ('post ' );
151
146
$ form ->setUseContainer (true );
152
147
$ form ->setId ('edit_form ' );
Original file line number Diff line number Diff line change @@ -582,13 +582,6 @@ public function getCommentsCollection($reload = false)
582
582
{
583
583
$ collection = $ this ->_commentCollectionFactory ->create ()->setCreditmemoFilter ($ this ->getId ())
584
584
->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();
592
585
593
586
if ($ this ->getId ()) {
594
587
foreach ($ collection as $ comment ) {
Original file line number Diff line number Diff line change 7
7
// @codingStandardsIgnoreFile
8
8
9
9
?>
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;*/ ?>
18
10
<table class="data-table admin__table-secondary order-subtotal-table">
19
11
<?php $ _totals = $ block ->getTotals ('footer ' )?>
20
12
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ private function isItTest($relativeFilePath)
232
232
*/
233
233
private function getControllerPath ($ relativeFilePath )
234
234
{
235
- if (preg_match ('~(Magento\/.* Controller\/Adminhtml\/.*)\.php~ ' , $ relativeFilePath , $ matches )) {
235
+ if (preg_match ('~(Magento\/[^\/]+\/ Controller\/Adminhtml\/.*)\.php~ ' , $ relativeFilePath , $ matches )) {
236
236
if (count ($ matches ) === 2 ) {
237
237
$ partPath = $ matches [1 ];
238
238
return $ partPath ;
You can’t perform that action at this time.
0 commit comments