Remove repo from favorites at delete/purge (#3641)

Closes https://github.com/larshp/abapGit/issues/3640
This commit is contained in:
Marc Bernard 2020-07-16 02:38:32 -04:00 committed by GitHub
parent 07e1f787c6
commit 3a48d01201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,6 +237,11 @@ CLASS ZCL_ABAPGIT_REPO_SRV IMPLEMENTATION.
zcl_abapgit_persist_factory=>get_repo( )->delete( io_repo->get_key( ) ). zcl_abapgit_persist_factory=>get_repo( )->delete( io_repo->get_key( ) ).
" If favorite, remove it
IF zcl_abapgit_persistence_user=>get_instance( )->is_favorite_repo( io_repo->get_key( ) ) = abap_true.
zcl_abapgit_persistence_user=>get_instance( )->toggle_favorite( io_repo->get_key( ) ).
ENDIF.
DELETE TABLE mt_list FROM io_repo. DELETE TABLE mt_list FROM io_repo.
ASSERT sy-subrc = 0. ASSERT sy-subrc = 0.