mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Fix for issue 935
Also fix classes that were previously modified using a different language than the master language.
This commit is contained in:
parent
7065fae9da
commit
67956ee771
|
@ -200,13 +200,22 @@ CLASS lcl_object_clas IMPLEMENTATION.
|
||||||
lt_descriptions TYPE lif_defs=>ty_seocompotx_tt,
|
lt_descriptions TYPE lif_defs=>ty_seocompotx_tt,
|
||||||
ls_clskey TYPE seoclskey,
|
ls_clskey TYPE seoclskey,
|
||||||
lt_sotr TYPE lif_defs=>ty_sotr_tt,
|
lt_sotr TYPE lif_defs=>ty_sotr_tt,
|
||||||
lt_lines TYPE tlinetab.
|
lt_lines TYPE tlinetab,
|
||||||
|
lv_curr_lang TYPE langu,
|
||||||
|
lv_dummy TYPE string ##needed.
|
||||||
|
|
||||||
ls_clskey-clsname = ms_item-obj_name.
|
ls_clskey-clsname = ms_item-obj_name.
|
||||||
|
|
||||||
|
"If class was deserialized with a previous versions of abapGit and current language was different
|
||||||
|
"from master language at this time, this call would return SY-LANGU as master language. To fix
|
||||||
|
"these objects, set SY-LANGU to master language temporarily.
|
||||||
|
GET LOCALE LANGUAGE lv_curr_lang COUNTRY lv_dummy MODIFIER lv_dummy.
|
||||||
|
SET LOCALE LANGUAGE mv_language.
|
||||||
|
|
||||||
ls_vseoclass = mo_object_oriented_object_fct->get_class_properties( is_class_key = ls_clskey ).
|
ls_vseoclass = mo_object_oriented_object_fct->get_class_properties( is_class_key = ls_clskey ).
|
||||||
|
|
||||||
|
SET LOCALE LANGUAGE lv_curr_lang.
|
||||||
|
|
||||||
CLEAR: ls_vseoclass-uuid,
|
CLEAR: ls_vseoclass-uuid,
|
||||||
ls_vseoclass-author,
|
ls_vseoclass-author,
|
||||||
ls_vseoclass-createdon,
|
ls_vseoclass-createdon,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user