mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fixed an issue where the Schema Diff Check icon beside filter options should not be visible if it is unselected. Fixes #7310
2) Fixed an issue where Reset Layout did not function and the Quick Search option under the Help menu displayed bullets. Fixes #7311
This commit is contained in:
@@ -141,13 +141,12 @@ def reset_layout():
|
||||
"""Reset configuration setting"""
|
||||
|
||||
try:
|
||||
if request.params['setting'] in [
|
||||
if hasattr(request, 'params') and \
|
||||
request.params['setting'] in [
|
||||
'Browser/Layout', 'SQLEditor/Layout', 'Debugger/Layout']:
|
||||
db.session.query(Setting) \
|
||||
.filter(Setting.user_id == current_user.id) \
|
||||
.filter((Setting.setting == 'Browser/Layout') |
|
||||
(Setting.setting == 'SQLEditor/Layout') |
|
||||
(Setting.setting == 'Debugger/Layout')) \
|
||||
.filter((Setting.setting == request.params['setting'])) \
|
||||
.delete()
|
||||
else:
|
||||
db.session.query(Setting) \
|
||||
|
||||
Reference in New Issue
Block a user