diff --git a/docs/en_US/release_notes_8_6.rst b/docs/en_US/release_notes_8_6.rst index 97b40881b..9e0672a8d 100644 --- a/docs/en_US/release_notes_8_6.rst +++ b/docs/en_US/release_notes_8_6.rst @@ -36,4 +36,5 @@ Bug fixes | `Issue #7275 `_ - Fixed an issue where debugger was not scrolling automatically on stepping. | `Issue #7282 `_ - Fixed an XSS vulnerability in the /settings/store endpoint. | `Issue #7294 `_ - Fixed an issue where double dollar quoted code is treated as string in syntax highlighter. - | `Issue #7317 `_ - Fixed an issue where pressing backspace should remove the spaces and not the entire tab width, on enabling 'Use spaces?' in the preferences. \ No newline at end of file + | `Issue #7317 `_ - Fixed an issue where pressing backspace should remove the spaces and not the entire tab width, on enabling 'Use spaces?' in the preferences. + | `Issue #7384 `_ - Fixed an issue when closing the view data second tab; it raises the error that the 'ViewCommand' object has no attribute 'auto_commit'. \ No newline at end of file diff --git a/web/pgadmin/tools/sqleditor/__init__.py b/web/pgadmin/tools/sqleditor/__init__.py index 1dec84ef5..939d24fa6 100644 --- a/web/pgadmin/tools/sqleditor/__init__.py +++ b/web/pgadmin/tools/sqleditor/__init__.py @@ -690,7 +690,7 @@ def close_sqleditor_session(trans_id): manager.release(did=cmd_obj.did, conn_id=cmd_obj.conn_id) # Close the auto complete connection - if cmd_obj.conn_id_ac is not None: + if hasattr(cmd_obj, 'conn_id_ac') and cmd_obj.conn_id_ac is not None: manager = get_driver( PG_DEFAULT_DRIVER).connection_manager(cmd_obj.sid) if manager is not None: @@ -1735,7 +1735,7 @@ def check_and_upgrade_to_qt(trans_id, connect): if 'gridData' in session and str(trans_id) in session['gridData']: data = pickle.loads(session['gridData'][str(trans_id)]['command_obj']) - if data.object_type == 'table': + if data.object_type == 'table' or data.object_type == 'view': manager = get_driver(PG_DEFAULT_DRIVER).connection_manager( data.sid) default_conn = manager.connection(conn_id=data.conn_id,