bugfix mapper comparison (#1265)
Some checks failed
build_downport / build_downport (push) Has been cancelled

This commit is contained in:
oblomov 2024-07-11 11:05:10 +02:00 committed by GitHub
parent c47f9ee7c1
commit 580e366f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,10 +105,15 @@ CLASS z2ui5_cl_core_bind_srv IMPLEMENTATION.
val = `<p>Binding Error - Two different binding types for same attribute used (` && mr_attri->name && `).`. val = `<p>Binding Error - Two different binding types for same attribute used (` && mr_attri->name && `).`.
ENDIF. ENDIF.
IF mr_attri->custom_mapper IS BOUND AND mr_attri->custom_mapper <> ms_config-custom_mapper. IF mr_attri->custom_mapper IS BOUND.
RAISE EXCEPTION TYPE z2ui5_cx_util_error
EXPORTING DATA(lv_name1) = z2ui5_cl_util=>rtti_get_classname_by_ref( mr_attri->custom_mapper ).
val = `<p>Binding Error - Two different mapper for same attribute used (` && mr_attri->name && `).`. DATA(lv_name2) = z2ui5_cl_util=>rtti_get_classname_by_ref( ms_config-custom_mapper ).
IF lv_name1 <> lv_name2.
RAISE EXCEPTION TYPE z2ui5_cx_util_error
EXPORTING
val = `<p>Binding Error - Two different mapper for same attribute used (` && mr_attri->name && `).`.
ENDIF.
ENDIF. ENDIF.
IF mr_attri->custom_mapper_back IS BOUND AND mr_attri->custom_mapper_back <> ms_config-custom_mapper_back. IF mr_attri->custom_mapper_back IS BOUND AND mr_attri->custom_mapper_back <> ms_config-custom_mapper_back.