Skip to content

Commit f808629

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 7576d5c + 64f2c7b commit f808629

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ phpMyAdmin - ChangeLog
2222
- issue Fix PHP 8.2 deprecated string interpolation syntax
2323
- issue Some languages are now correctly detected from the HTTP header
2424
- issue #17617 Sorting is correctly remembered when $cfg['RememberSorting'] is true
25+
- issue #17593 Table filtering now works when action buttons are on the right side of the row
2526

2627
5.2.0 (2022-05-10)
2728
- issue #16521 Upgrade Bootstrap to version 5

js/src/sql.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -893,10 +893,11 @@ window.AJAX.registerOnload('sql.js', function () {
893893
var $targetTable = $('.table_results[data-uniqueId=\'' + uniqueId + '\']');
894894
var $headerCells = $targetTable.find('th[data-column]');
895895
var targetColumns = [];
896-
// To handle colspan=4, in case of edit,copy etc options.
897-
var dummyTh = ($('.edit_row_anchor').length !== 0 ?
898-
'<th class="hide dummy_th"></th><th class="hide dummy_th"></th><th class="hide dummy_th"></th>'
899-
: '');
896+
897+
// To handle colspan=4, in case of edit, copy, etc options (Table row links). Add 3 dummy <TH> elements - only when the Table row links are NOT on the "Right"
898+
var rowLinksLocation = ($targetTable.find('thead > tr > th')).first();
899+
var dummyTh = (rowLinksLocation[0].getAttribute('colspan') !== null) ? '<th class="hide dummy_th"></th><th class="hide dummy_th"></th><th class="hide dummy_th"></th>' : ''; // Selecting columns that will be considered for filtering and searching.
900+
900901
// Selecting columns that will be considered for filtering and searching.
901902
$headerCells.each(function () {
902903
targetColumns.push($(this).text().trim());

0 commit comments

Comments
 (0)