Merge branch 'QA_5_2'

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-07-19 13:51:40 -03:00
commit f80862938c
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,7 @@ phpMyAdmin - ChangeLog
- issue Fix PHP 8.2 deprecated string interpolation syntax
- issue Some languages are now correctly detected from the HTTP header
- issue #17617 Sorting is correctly remembered when $cfg['RememberSorting'] is true
- issue #17593 Table filtering now works when action buttons are on the right side of the row
5.2.0 (2022-05-10)
- issue #16521 Upgrade Bootstrap to version 5

View File

@ -893,10 +893,11 @@ window.AJAX.registerOnload('sql.js', function () {
var $targetTable = $('.table_results[data-uniqueId=\'' + uniqueId + '\']');
var $headerCells = $targetTable.find('th[data-column]');
var targetColumns = [];
// To handle colspan=4, in case of edit,copy etc options.
var dummyTh = ($('.edit_row_anchor').length !== 0 ?
'<th class="hide dummy_th"></th><th class="hide dummy_th"></th><th class="hide dummy_th"></th>'
: '');
// 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"
var rowLinksLocation = ($targetTable.find('thead > tr > th')).first();
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.
// Selecting columns that will be considered for filtering and searching.
$headerCells.each(function () {
targetColumns.push($(this).text().trim());