mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 14:10:05 -05:00
Fixed an issue where the dependent tab throwing an error when selecting any login/group role. Fixes #6294
This commit is contained in:
1 parent
6ffb82fb6d
commit
0f62fecca2
3 files changed
+3
-2
No files matched your search
@@ -375,7 +375,7 @@ class DatabaseView(PGChildNodeView):
|
||||
if self.manager.db == db:
|
||||
connected = True
|
||||
else:
|
||||
conn = self.manager.connection(row['name'])
|
||||
conn = self.manager.connection(database=row['name'])
|
||||
connected = conn.connected()
|
||||
icon_css_class = "pg-icon-database"
|
||||
if not connected:
|
||||
|
||||
@@ -1106,7 +1106,7 @@ rolmembership:{
|
||||
# a new connection to run the query and fetch the dependents.
|
||||
is_connected = True
|
||||
try:
|
||||
temp_conn = manager.connection(db_row['datname'])
|
||||
temp_conn = manager.connection(database=db_row['datname'])
|
||||
is_connected = temp_conn.connected()
|
||||
if not is_connected:
|
||||
temp_conn.connect()
|
||||
|
||||
Reference in new issue
Block a user