mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
1) Fix sort/filter dialog editing issue. Fixes #3558.
2) Fix sort/filter dialog issue where it incorrectly requires ASC/DESC. Fixes #3325.
This commit is contained in:
committed by
Akshay Joshi
parent
46d4bf027d
commit
57660d131f
@@ -425,12 +425,10 @@ class GridCommand(BaseCommand, SQLFilter, FetchedRowTracker):
|
||||
"""
|
||||
This function gets the order required for primary keys
|
||||
"""
|
||||
if self.cmd_type in (VIEW_FIRST_100_ROWS, VIEW_ALL_ROWS):
|
||||
return 'asc'
|
||||
elif self.cmd_type == VIEW_LAST_100_ROWS:
|
||||
if self.cmd_type == VIEW_LAST_100_ROWS:
|
||||
return 'desc'
|
||||
else:
|
||||
return None
|
||||
return 'asc'
|
||||
|
||||
|
||||
class TableCommand(GridCommand):
|
||||
|
||||
Reference in New Issue
Block a user