XSLT: Unlock in case of errors (#4512)

If an XSLT object has for example syntax errors, it remains locked and can't be edited:

The change unlocks the object in this case.
This commit is contained in:
Marc Bernard 2021-02-13 11:09:29 -05:00 committed by GitHub
parent da53a04abb
commit b4cd1695ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_XSLT IMPLEMENTATION.
CLASS zcl_abapgit_object_xslt IMPLEMENTATION.
METHOD get.
@ -146,6 +146,7 @@ CLASS ZCL_ABAPGIT_OBJECT_XSLT IMPLEMENTATION.
permission_failure = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
lo_xslt->set_changeable( abap_false ). " unlock
zcx_abapgit_exception=>raise( |Error from XSLT save, { sy-subrc }| ).
ENDIF.
@ -157,6 +158,7 @@ CLASS ZCL_ABAPGIT_OBJECT_XSLT IMPLEMENTATION.
* xtc_not_available = 4 downport/upport, does not exist in 751
OTHERS = 5 ).
IF sy-subrc <> 0.
lo_xslt->set_changeable( abap_false ). " unlock
zcx_abapgit_exception=>raise( |Error from XSLT activate, { sy-subrc }| ).
ENDIF.