Skip to content

Commit e7aa3fd

Browse files
Merge pull request #18068 from kamil-tekiela/Fix-#18065
Revert earlier change - fix #18065
2 parents 91167fb + 1a38769 commit e7aa3fd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎libraries/classes/Server/Status/Processes.php‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use function __;
1212
use function array_keys;
13+
use function count;
1314
use function mb_strtolower;
1415
use function strlen;
1516
use function ucfirst;
@@ -143,6 +144,8 @@ private function getSortableColumnsForProcessList(
143144
'order_by_field' => 'Info',
144145
];
145146

147+
$sortableColCount = count($sortableColumns);
148+
146149
$columns = [];
147150
foreach ($sortableColumns as $columnKey => $column) {
148151
$is_sorted = $orderByField !== ''
@@ -167,6 +170,10 @@ private function getSortableColumnsForProcessList(
167170
'is_full' => false,
168171
];
169172

173+
if (0 !== --$sortableColCount) {
174+
continue;
175+
}
176+
170177
$columns[$columnKey]['has_full_query'] = true;
171178
if (! $showFullSql) {
172179
continue;

0 commit comments

Comments
 (0)