mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
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:
parent
da53a04abb
commit
b4cd1695ab
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user