Skip to content

Commit 1280adb

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2 parents 3274eca + 0101388 commit 1280adb

13 files changed

Lines changed: 42 additions & 19 deletions

File tree

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ phpMyAdmin - ChangeLog
152152
- issue #19321 Suppress deprecation message of E_STRICT constant
153153
- issue Fix PHP 8.4 `str_getcsv` `$escape` parameter deprecation
154154
- issue #19426 Fix PHP warnings when the column is a `COMPRESSED BLOB`
155+
- issue Allow opening server breadcrumb links in new tab with Ctrl/Meta key
156+
- issue #19500 Use `KILL` instead of `CALL mysql.rds_kill` for non super users
157+
- issue Fix "copy to clipboard" was adding a blank row for each repeating header row
158+
- issue Fix TCPDF translations
159+
- issue Remove underline for links on Bootstrap theme
160+
- issue Fix sql editor height on multi-table query
161+
- issue #18852 Fix notification color scheme on the Bootstrap dark theme
162+
- issue #14542 Show the query even if no results are found in the Table search
155163

156164
5.2.1 (2023-02-07)
157165
- issue #17522 Fix case where the routes cache file is invalid

public/themes/bootstrap/scss/_common.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,10 @@ select.invalid_value,
763763
background-image: url("../img/ajax_clock_small.gif");
764764
background-repeat: no-repeat;
765765
background-position: 2%;
766-
border: 1px solid #e2b709;
767-
background-color: #ffe57e;
766+
border: 1px solid var(--bs-warning-border-subtle);
767+
background-color: var(--bs-warning-bg-subtle);
768+
color: var(--bs-warning-text-emphasis);
768769
border-radius: 5px;
769-
box-shadow: 0 5px 90px #888;
770770
}
771771

772772
#loading_parent {

public/themes/bootstrap/scss/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
$navigation-width: 240px !default;
44

5+
// Links
6+
7+
$link-decoration: none;
8+
$link-hover-decoration: underline;
9+
510
// Breadcrumbs
611

712
$breadcrumb-navbar-padding-y: 0.5rem !default;

resources/js/src/database/multi_table_query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ AJAX.registerTeardown('database/multi_table_query.js', function () {
4242
AJAX.registerOnload('database/multi_table_query.js', function () {
4343
var editor = getSqlEditor($('#MultiSqlquery'), {}, 'vertical');
4444
$('.CodeMirror-line').css('text-align', 'left');
45-
editor.setSize(-1, 50);
45+
editor.setSize(-1, -1);
4646

4747
var columnCount = 3;
4848
addNewColumnCallbacks();

resources/js/src/modules/functions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,11 +3362,18 @@ export function floatingMenuBar () {
33623362

33633363
/**
33643364
* Scrolls the page to the top if clicking the server-breadcrumb bar
3365+
* If the user holds the Ctrl (or Meta on macOS) key, it prevents the scroll
3366+
* so they can open the link in a new tab.
3367+
*
33653368
* @return {function}
33663369
*/
33673370
export function breadcrumbScrollToTop () {
33683371
return function () {
33693372
$(document).on('click', '#server-breadcrumb, #goto_pagetop', function (event) {
3373+
if (event.ctrlKey || event.metaKey) {
3374+
return;
3375+
}
3376+
33703377
event.preventDefault();
33713378
$('html, body').animate({ scrollTop: 0 }, 'fast');
33723379
});

resources/js/src/sql.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,10 @@ AJAX.registerOnload('sql.js', function () {
624624

625625
textArea.value += '\n';
626626
$('.table_results tbody tr').each(function () {
627+
if ($(this).hasClass('repeating_header_row')) {
628+
return;
629+
}
630+
627631
$(this).find('.data span').each(function () {
628632
// Extract <em> tag for NULL values before converting to string to not mess up formatting
629633
var data = $(this).find('em').length !== 0 ? $(this).find('em')[0] : this;

src/Dbal/DatabaseInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ public function isAmazonRds(): bool
18361836
*/
18371837
public function getKillQuery(int $process): string
18381838
{
1839-
if ($this->isAmazonRds()) {
1839+
if ($this->isAmazonRds() && $this->isSuperUser()) {
18401840
return 'CALL mysql.rds_kill(' . $process . ');';
18411841
}
18421842

src/Display/Results.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,7 @@ private function getColumnParams(StatementInfo $statementInfo): array
24102410
*/
24112411
private function getRepeatingHeaders(): string
24122412
{
2413-
$headerHtml = '<tr>' . "\n";
2413+
$headerHtml = '<tr class="repeating_header_row">' . "\n";
24142414

24152415
if ($this->numEmptyColumnsBefore > 0) {
24162416
$headerHtml .= ' <th colspan="'

src/I18n/LanguageManager.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -990,14 +990,6 @@ public function activate(Language $language): void
990990

991991
self::$textDirection = $language->isRTL() ? TextDirection::RightToLeft : TextDirection::LeftToRight;
992992

993-
/* TCPDF settings and translations */
994-
$GLOBALS['l'] = [
995-
'a_meta_charset' => 'UTF-8',
996-
'a_meta_dir' => self::$textDirection->value,
997-
'a_meta_language' => $languageCode,
998-
'w_page' => __('Page number:'),
999-
];
1000-
1001993
/* Show possible warnings from language selection */
1002994
$this->showWarnings();
1003995
}

src/Pdf.php

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

1010
use DateTimeImmutable;
1111
use Exception;
12+
use PhpMyAdmin\I18n\LanguageManager;
1213
use TCPDF;
1314
use TCPDF_FONTS;
1415

@@ -63,6 +64,12 @@ public function __construct(
6364
$this->AddFont('DejaVuSans', 'B', 'dejavusansb.php');
6465
$this->setFont(self::PMA_PDF_FONT, '', 14);
6566
$this->setFooterFont([self::PMA_PDF_FONT, '', 14]);
67+
$this->setLanguageArray([
68+
'a_meta_charset' => 'UTF-8',
69+
'a_meta_dir' => LanguageManager::$textDirection->value,
70+
'a_meta_language' => Current::$lang,
71+
'w_page' => __('Page number:'),
72+
]);
6673
}
6774

6875
/**

0 commit comments

Comments
 (0)