Skip to content

Commit e08499b

Browse files
committed
#30388 : fix js error on edit review page
1 parent af2d29a commit e08499b

File tree

1 file changed

+13
-15
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+13
-15
lines changed

app/code/Magento/Review/Block/Adminhtml/Edit.php

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Review\Block\Adminhtml;
87

98
/**
@@ -45,8 +44,7 @@ public function __construct(
4544
\Magento\Review\Helper\Action\Pager $reviewActionPager,
4645
\Magento\Framework\Registry $registry,
4746
array $data = []
48-
)
49-
{
47+
) {
5048
$this->_coreRegistry = $registry;
5149
$this->_reviewActionPager = $reviewActionPager;
5250
$this->_reviewFactory = $reviewFactory;
@@ -80,12 +78,12 @@ protected function _construct()
8078
[
8179
'label' => __('Previous'),
8280
'onclick' => 'setLocation(\'' . $this->getUrl(
83-
'review/*/*',
84-
[
85-
'id' => $prevId,
86-
'ret' => $this->getRequest()->getParam('ret'),
87-
]
88-
) . '\')'
81+
'review/*/*',
82+
[
83+
'id' => $prevId,
84+
'ret' => $this->getRequest()->getParam('ret'),
85+
]
86+
) . '\')'
8987
],
9088
3,
9189
10
@@ -141,12 +139,12 @@ protected function _construct()
141139
[
142140
'label' => __('Next'),
143141
'onclick' => 'setLocation(\'' . $this->getUrl(
144-
'review/*/*',
145-
[
146-
'id' => $nextId,
147-
'ret' => $this->getRequest()->getParam('ret'),
148-
]
149-
) . '\')'
142+
'review/*/*',
143+
[
144+
'id' => $nextId,
145+
'ret' => $this->getRequest()->getParam('ret'),
146+
]
147+
) . '\')'
150148
],
151149
3,
152150
105

0 commit comments

Comments
 (0)