Skip to content

Commit d4fad68

Browse files
authored
ENGCOM-5589: Resolve "Visibility" column in Review Grid should disable the "Sort" ability (issue 24105) #24106
2 parents 4e470c1 + 1ea4452 commit d4fad68

File tree

1 file changed

+8
-3
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Review\Block\Adminhtml;
89

@@ -15,8 +16,6 @@
1516
* @method \Magento\Review\Block\Adminhtml\Grid setCustomerId() setCustomerId(int $customerId)
1617
* @method \Magento\Review\Block\Adminhtml\Grid setMassactionIdFieldOnlyIndexValue()
1718
* setMassactionIdFieldOnlyIndexValue(bool $onlyIndex)
18-
*
19-
* @author Magento Core Team <core@magentocommerce.com>
2019
*/
2120
class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
2221
{
@@ -239,7 +238,13 @@ protected function _prepareColumns()
239238
if (!$this->_storeManager->isSingleStoreMode()) {
240239
$this->addColumn(
241240
'visible_in',
242-
['header' => __('Visibility'), 'index' => 'stores', 'type' => 'store', 'store_view' => true]
241+
[
242+
'header' => __('Visibility'),
243+
'index' => 'stores',
244+
'type' => 'store',
245+
'store_view' => true,
246+
'sortable' => false
247+
]
243248
);
244249
}
245250

0 commit comments

Comments
 (0)