mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
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:
parent
975bcd9fb0
commit
4050545f7c
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user