Fixed an issue where the wrong message 'Current database has been moved or renamed' is displayed when debugging any function. #6482

This commit is contained in:
Akshay Joshi 2023-09-26 18:07:25 +05:30
parent 975bcd9fb0
commit 4050545f7c
2 changed files with 2 additions and 1 deletions

View File

@ -31,4 +31,5 @@ Housekeeping
Bug fixes
*********
| `Issue #6482 <https://github.com/pgadmin-org/pgadmin4/issues/6482>`_ - Fixed an issue where the wrong message "Current database has been moved or renamed" is displayed when debugging any function.
| `Issue #6674 <https://github.com/pgadmin-org/pgadmin4/issues/6674>`_ - Fix an issue where foreign table column name becomes "none" if the user changes any column data type.

View File

@ -325,7 +325,7 @@ export default class DebuggerModule {
}
checkDbNameChange(data, dbNode, newTreeInfo, db_label) {
if (data && data.data_obj && data.data_obj.db_name != newTreeInfo.database.label) {
if (data && data.data_obj && data.data_obj.db_name != _.unescape(newTreeInfo.database.label)) {
db_label = data.data_obj.db_name;
let message = `Current database has been moved or renamed to ${db_label}. Click on the OK button to refresh the database name.`;
refresh_db_node(message, dbNode);