Merge branch 'QA_5_2'

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-03-08 10:17:13 -03:00
commit 317df456e8
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
3 changed files with 15 additions and 4 deletions

View File

@ -25,9 +25,11 @@ function changePluginOpts () {
$('#' + selectedPluginName + '_options').fadeIn('slow');
const importNotification = document.getElementById('import_notification');
importNotification.innerText = '';
if (selectedPluginName === 'csv') {
importNotification.innerHTML = '<div class="alert alert-info mb-0 mt-3" role="alert">' + window.Messages.strImportCSV + '</div>';
if (importNotification) {
importNotification.innerText = '';
if (selectedPluginName === 'csv') {
importNotification.innerHTML = '<div class="alert alert-info mb-0 mt-3" role="alert">' + window.Messages.strImportCSV + '</div>';
}
}
}

View File

@ -452,7 +452,11 @@ Functions.suggestPassword = function (passwordForm) {
passwordForm.elements.pma_pw2.value = passwd.value;
var meterObj = $jQueryPasswordForm.find('meter[name="pw_meter"]').first();
var meterObjLabel = $jQueryPasswordForm.find('span[name="pw_strength"]').first();
Functions.checkPasswordStrength(passwd.value, meterObj, meterObjLabel, passwordForm.elements.username.value);
var username = '';
if (passwordForm.elements.username) {
username = passwordForm.elements.username.value;
}
Functions.checkPasswordStrength(passwd.value, meterObj, meterObjLabel, username);
return true;
};

View File

@ -258,6 +258,11 @@ class ExportXml extends ExportPlugin
. Util::backquote($table),
0,
);
if ($result === []) {
continue;
}
$tbl = (string) $result[$table][1];
$is_view = $GLOBALS['dbi']->getTable($GLOBALS['db'], $table)