cloning -> favorite, add earlier

in case the deserialization fails, currently the repo is not added as a favorite
This commit is contained in:
larshp 2016-11-27 11:53:42 +00:00
parent 2bcfbe0dc3
commit 968a186a85
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@ REPORT zabapgit LINE-SIZE 100.
* See http://www.abapgit.org
CONSTANTS: gc_xml_version TYPE string VALUE 'v1.0.0', "#EC NOTEXT
gc_abap_version TYPE string VALUE 'v1.23.5'. "#EC NOTEXT
gc_abap_version TYPE string VALUE 'v1.23.6'. "#EC NOTEXT
********************************************************************************
* The MIT License (MIT)

View File

@ -62,11 +62,13 @@ CLASS lcl_services_repo IMPLEMENTATION.
iv_url = ls_popup-url
iv_branch_name = ls_popup-branch_name
iv_package = ls_popup-package ).
toggle_favorite( lo_repo->get_key( ) ).
lo_repo->status( ). " check for errors
lo_repo->deserialize( ).
lcl_app=>user( )->set_repo_show( lo_repo->get_key( ) ). " Set default repo for user
toggle_favorite( lo_repo->get_key( ) ).
COMMIT WORK.