Restore Variable lv_commitmsg_comment_length (#6886)

This commit is contained in:
Francisco Milán 2024-03-31 01:23:15 -06:00 committed by GitHub
parent 52c9bd1847
commit 25091cc6fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -289,6 +289,7 @@ CLASS zcl_abapgit_gui_page_commit IMPLEMENTATION.
METHOD get_form_schema.
DATA lv_commitmsg_comment_length TYPE i.
CONSTANTS lc_commitmsg_comment_min_len TYPE i VALUE 1.
CONSTANTS lc_commitmsg_comment_max_len TYPE i VALUE 255.
@ -296,12 +297,14 @@ CLASS zcl_abapgit_gui_page_commit IMPLEMENTATION.
iv_form_id = 'commit-form'
iv_help_page = 'https://docs.abapgit.org/guide-stage-commit.html' ).
lv_commitmsg_comment_length = mo_settings->get_commitmsg_comment_length( ).
ro_form->text(
iv_name = c_id-comment
iv_label = 'Comment'
iv_required = abap_true
iv_min = lc_commitmsg_comment_min_len
iv_max = lc_commitmsg_comment_max_len
iv_max = lv_commitmsg_comment_length
iv_placeholder = |Add a mandatory comment with max { lc_commitmsg_comment_max_len } characters|
)->textarea(
iv_name = c_id-body