Fixed an issue where the query tool is displaying an incorrect label. Fixes #7136

This commit is contained in:
Rahul Shirsat
2022-02-02 14:45:31 +05:30
committed by Akshay Joshi
parent 78f0c9c4a5
commit 4d727015fd
2 changed files with 2 additions and 1 deletions

View File

@@ -2707,7 +2707,7 @@ define('tools.querytool', [
$('#btn-conn-status i').removeClass('obtaining-conn');
var tree_data = pgWindow.default.pgAdmin.Browser.tree.getTreeNodeHierarchy(pgWindow.default.pgAdmin.Browser.tree.selected());
let conn_title = panelTitleFunc.getPanelTitle(pgWindow.default.pgAdmin.Browser, null, null, null, true, tree_data.database.label);
let conn_title = ` ${_.unescape(url_params.title)}`;
self.gridView.set_editor_title(_.unescape(conn_title));
let connection_data = {
'server_group': self.gridView.handler.url_params.sgid,