stable

Clone or download

Read-only

request #20577 Invalid format can be set in DB at artifact submission via REST

This patch is also the first step of request #20923 Markdown replaces text in artifact REST route too How to test: - Make sure your Tracker has at least one Text Field field - Update or create an artifact via REST with a bad format - Go in your DB, in tuleap.tracker_changeset_value_text table => The format should be the user default format ('html' or 'commonmark') - Go to the updated or created artifact and edit the concerned text field => The user's default format should be selected Change-Id: Idf75d59b5fc03e53a7fe5dc01a4aeae5b1414ac1

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.php +22 −4 Go to diff View file
M plugins/tracker/tests/rest/Artifacts/ArtifactsTest.php +82 −0 Go to diff View file
M plugins/tracker/tests/rest/TrackerBase.php +23 −3 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/TrackerAllFields/project.xml +695 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/TrackerAllFields/user_map.csv +1 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/TrackerAllFields/users.xml +30 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_TextTest.php +39 −0 Go to diff View file