stable
Clone or download
Read-only
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 |