Skip to content

Commit da8766f

Browse files
committed
Resolve "Visibility" column in Review Grid should disable the "Sort" ability (issue 24105)
1 parent c6427d1 commit da8766f

File tree

1 file changed

+14
-1
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@
1616
*
1717
* @author Magento Core Team <[email protected]>
1818
*/
19+
declare(strict_types=1);
20+
1921
namespace Magento\Review\Block\Adminhtml;
2022

23+
/**
24+
* Review Grid
25+
*
26+
* Class \Magento\Review\Block\Adminhtml\Grid
27+
*/
2128
class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
2229
{
2330
/**
@@ -239,7 +246,13 @@ protected function _prepareColumns()
239246
if (!$this->_storeManager->isSingleStoreMode()) {
240247
$this->addColumn(
241248
'visible_in',
242-
['header' => __('Visibility'), 'index' => 'stores', 'type' => 'store', 'store_view' => true]
249+
[
250+
'header' => __('Visibility'),
251+
'index' => 'stores',
252+
'type' => 'store',
253+
'store_view' => true,
254+
'sortable' => false
255+
]
243256
);
244257
}
245258

0 commit comments

Comments
 (0)