Fix repo settings dialog (#5649)

* Fix repo settings dialog

Fixes handling of textarea field

Closes #5484

* Lint
This commit is contained in:
Marc Bernard 2022-06-27 10:44:44 +02:00 committed by GitHub
parent 7f80845308
commit e3cbb7dcf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -211,12 +211,9 @@ CLASS zcl_abapgit_gui_page_sett_repo IMPLEMENTATION.
iv_key = c_id-starting_folder iv_key = c_id-starting_folder
iv_val = ls_dot-starting_folder ). iv_val = ls_dot-starting_folder ).
LOOP AT ls_dot-ignore ASSIGNING <lv_ignore>. lv_ignore = concat_lines_of(
lv_ignore = lv_ignore && <lv_ignore> && zif_abapgit_definitions=>c_newline. table = ls_dot-ignore
ENDLOOP. sep = zif_abapgit_definitions=>c_newline ).
IF sy-subrc <> 0.
lv_ignore = zif_abapgit_definitions=>c_newline.
ENDIF.
mo_form_data->set( mo_form_data->set(
iv_key = c_id-ignore iv_key = c_id-ignore
@ -288,9 +285,12 @@ CLASS zcl_abapgit_gui_page_sett_repo IMPLEMENTATION.
" Add newly entered ignores " Add newly entered ignores
lt_ignore = zcl_abapgit_convert=>split_string( mo_form_data->get( c_id-ignore ) ). lt_ignore = zcl_abapgit_convert=>split_string( mo_form_data->get( c_id-ignore ) ).
LOOP AT lt_ignore INTO lv_ignore WHERE table_line IS NOT INITIAL. LOOP AT lt_ignore INTO lv_ignore.
lv_ignore = condense( lv_ignore ).
IF lv_ignore IS NOT INITIAL.
lo_dot->add_ignore( iv_path = '' lo_dot->add_ignore( iv_path = ''
iv_filename = lv_ignore ). iv_filename = lv_ignore ).
ENDIF.
ENDLOOP. ENDLOOP.
" Requirements " Requirements

View File

@ -810,8 +810,8 @@ CLASS zcl_abapgit_html_form IMPLEMENTATION.
IF is_field-rows > 0. IF is_field-rows > 0.
lv_rows = | rows="{ is_field-rows }"|. lv_rows = | rows="{ is_field-rows }"|.
ELSE. ELSEIF is_attr-value IS NOT INITIAL.
lv_rows = lines( zcl_abapgit_convert=>split_string( is_attr-value ) ). lv_rows = | rows="{ lines( zcl_abapgit_convert=>split_string( is_attr-value ) ) + 1 }"|.
ENDIF. ENDIF.
IF is_field-cols > 0. IF is_field-cols > 0.