Move up ON_EVENT exit call (#6498)

Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
Fabian Lupa 2023-09-18 17:37:16 +02:00 committed by GitHub
parent 2acd363630
commit a13798408d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View File

@ -282,12 +282,16 @@ CLASS ZCL_ABAPGIT_GUI IMPLEMENTATION.
it_postdata = it_postdata.
TRY.
ls_handled = zcl_abapgit_exit=>get_instance( )->on_event( li_event ).
IF ls_handled-state = c_event_state-not_handled.
LOOP AT mt_event_handlers INTO li_handler.
ls_handled = li_handler->on_event( li_event ).
IF ls_handled-state IS NOT INITIAL AND ls_handled-state <> c_event_state-not_handled. " is handled
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
IF is_page_modal( mi_cur_page ) = abap_true AND NOT (
ls_handled-state = c_event_state-re_render OR

View File

@ -671,8 +671,6 @@ CLASS zcl_abapgit_gui_router IMPLEMENTATION.
METHOD zif_abapgit_gui_event_handler~on_event.
rs_handled = zcl_abapgit_exit=>get_instance( )->on_event( ii_event ).
IF rs_handled-state IS INITIAL.
rs_handled = general_page_routing( ii_event ).
ENDIF.