mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Repo List: fix sort (#5397)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
c88dc9f216
commit
7992625644
|
@ -46,8 +46,10 @@ CLASS zcl_abapgit_gui_page_repo_over DEFINITION
|
|||
branch TYPE string,
|
||||
created_by TYPE syuname,
|
||||
created_at TYPE string,
|
||||
created_at_raw TYPE timestampl,
|
||||
deserialized_by TYPE syuname,
|
||||
deserialized_at TYPE string,
|
||||
deserialized_at_raw TYPE timestampl,
|
||||
write_protected TYPE abap_bool,
|
||||
END OF ty_overview,
|
||||
ty_overviews TYPE STANDARD TABLE OF ty_overview
|
||||
|
@ -56,7 +58,8 @@ CLASS zcl_abapgit_gui_page_repo_over DEFINITION
|
|||
BEGIN OF c_action,
|
||||
select TYPE string VALUE 'select',
|
||||
apply_filter TYPE string VALUE 'apply_filter',
|
||||
END OF c_action .
|
||||
END OF c_action ,
|
||||
c_raw_field_suffix TYPE string VALUE `_RAW` ##NO_TEXT.
|
||||
|
||||
DATA: mv_order_descending TYPE abap_bool,
|
||||
mv_filter TYPE string,
|
||||
|
@ -176,10 +179,18 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
|
||||
IF mv_order_by IS NOT INITIAL.
|
||||
|
||||
CLEAR ls_sort.
|
||||
|
||||
IF mv_order_by = 'CREATED_AT' OR mv_order_by = 'DESERIALIZED_AT'.
|
||||
ls_sort-name = mv_order_by && c_raw_field_suffix.
|
||||
ELSE.
|
||||
ls_sort-name = mv_order_by.
|
||||
ls_sort-descending = mv_order_descending.
|
||||
ls_sort-astext = abap_true.
|
||||
ENDIF.
|
||||
|
||||
ls_sort-descending = mv_order_descending.
|
||||
INSERT ls_sort INTO TABLE lt_sort.
|
||||
|
||||
ENDIF.
|
||||
|
||||
SORT ct_overview BY (lt_sort).
|
||||
|
@ -234,6 +245,7 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
ls_overview-branch = <ls_repo>->ms_data-branch_name.
|
||||
ls_overview-created_by = <ls_repo>->ms_data-created_by.
|
||||
ls_overview-write_protected = <ls_repo>->ms_data-local_settings-write_protected.
|
||||
ls_overview-created_at_raw = <ls_repo>->ms_data-created_at.
|
||||
|
||||
IF <ls_repo>->ms_data-created_at IS NOT INITIAL.
|
||||
CONVERT TIME STAMP <ls_repo>->ms_data-created_at
|
||||
|
@ -245,6 +257,7 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
ENDIF.
|
||||
|
||||
ls_overview-deserialized_by = <ls_repo>->ms_data-deserialized_by.
|
||||
ls_overview-deserialized_at_raw = <ls_repo>->ms_data-deserialized_at.
|
||||
|
||||
IF <ls_repo>->ms_data-deserialized_at IS NOT INITIAL.
|
||||
CONVERT TIME STAMP <ls_repo>->ms_data-deserialized_at
|
||||
|
|
Loading…
Reference in New Issue
Block a user