mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-25 10:10:19 -06:00
Fix an issue where query tool on shared server is throwing error if the pgAdmin config DB is external. #6252
This commit is contained in:
parent
c873217cf1
commit
59c4a00134
@ -38,4 +38,5 @@ Bug fixes
|
||||
|
||||
| `Issue #5454 <https://github.com/pgadmin-org/pgadmin4/issues/5454>`_ - Fix incorrect redirection URL after authentication by removing fixed value set to SCRIPT_NAME environment variable in pgAdmin4.wsgi file.
|
||||
| `Issue #6500 <https://github.com/pgadmin-org/pgadmin4/issues/6500>`_ - Fix the issue where query tool window turns blank if the user tries to generate a graph on the result.
|
||||
| `Issue #6252 <https://github.com/pgadmin-org/pgadmin4/issues/6252>`_ - Fix an issue where query tool on shared server is throwing error if the pgAdmin config DB is external.
|
||||
| `Issue #6624 <https://github.com/pgadmin-org/pgadmin4/issues/6624>`_ - Fix an issue where changing MFA_SUPPORTED_METHODS breaks the MFA validation.
|
||||
|
@ -412,14 +412,14 @@ class ServerModule(sg.ServerGroupPluginModule):
|
||||
"""
|
||||
shared_server = SharedServer.query.filter_by(
|
||||
name=server.name, user_id=current_user.id,
|
||||
servergroup_id=gid, osid=server.id).first()
|
||||
servergroup_id=int(gid), osid=server.id).first()
|
||||
|
||||
if shared_server is None:
|
||||
ServerModule.create_shared_server(server, gid)
|
||||
ServerModule.create_shared_server(server, int(gid))
|
||||
|
||||
shared_server = SharedServer.query.filter_by(
|
||||
name=server.name, user_id=current_user.id,
|
||||
servergroup_id=gid, osid=server.id).first()
|
||||
servergroup_id=int(gid), osid=server.id).first()
|
||||
|
||||
return shared_server
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user