objects: do not consider only native objects as supported (#4611)

After the pull request:
https://github.com/abapGit/abapGit/pull/4589

Objects supported by abapGit-plugins are not deserialized and
all are reported as not supported.

Closes #4610

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Jakub Filak 2021-03-06 22:31:49 +01:00 committed by GitHub
parent 043d8e1ef2
commit cce8660054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1253,7 +1253,6 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
METHOD supported_list.
DATA: lt_objects TYPE STANDARD TABLE OF ko100,
lv_supported TYPE abap_bool,
ls_item TYPE zif_abapgit_definitions=>ty_item.
FIELD-SYMBOLS <ls_object> LIKE LINE OF lt_objects.
@ -1272,11 +1271,7 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
LOOP AT lt_objects ASSIGNING <ls_object> WHERE pgmid = 'R3TR'.
ls_item-obj_type = <ls_object>-object.
lv_supported = is_supported(
is_item = ls_item
iv_native_only = abap_true ).
IF lv_supported = abap_true.
IF is_supported( ls_item ) = abap_true.
INSERT <ls_object>-object INTO TABLE rt_types.
ENDIF.
ENDLOOP.