stable

Clone or download

Read-only

fix: Preserve line breaks for default value in text fields

Given a text field with the following default value, that serves as a template to help users fill their artifacts: ``` As a… I order to… I want to… ``` Then the default value should stay the same, with line breaks, regardless the preference value of text format for the user: text, html, markdown. Before this contribution, in html, line breaks were lost which resulted as having everything on one line. No changes when editing an artifact with user's values. If the request to submit/update the artifact is failing (missing required field for example), then the submitted value is correctly displayed. Closes request #23371: Preserve line breaks for default value in text fields Change-Id: I26950eb8632b4d84e19a30a6922fc69010bafe2c

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/RichTextareaProvider.php +3 βˆ’2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/View/Edit.class.php +0 βˆ’1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.php +12 βˆ’15 Go to diff View file
M plugins/tracker/scripts/artifact/create-view.ts +1 βˆ’17 Go to diff View file
M plugins/tracker/scripts/artifact/rich-text-editor-creator/RichTextEditorsCreator.test.ts +0 βˆ’31 Go to diff View file
M plugins/tracker/scripts/artifact/rich-text-editor-creator/RichTextEditorsCreator.ts +1 βˆ’8 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/RichTextareaProviderTest.php +1 βˆ’15 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_TextTest.php +3 βˆ’3 Go to diff View file
M src/scripts/codendi/RichTextEditor.js +0 βˆ’12 Go to diff View file