stable

Clone or download

Read-only

Fix warning returned by the PUT /artifact/:id REST route

Part of story #24970 [modal] select type for links Warning is returned by the REST route when the user uses `forward` value for the `direction` key which in the `all_links` key How to test: - Enable the feature flag: $ tuleap config-set feature_flag_allow_reverse_links 1 - Make a PUT request to an existing artifact (e.g 120) with the following payload: ``` { "values": [{ "field_id": 543, "all_links": [ {"id": 11, "direction": "forward", "type": ""}, ] }] } ``` => The artifact is updated and no warning is returned Change-Id: I4ca4f867a5737f715a6742400fdacf467cc7e7e0

Modified Files

Name
M plugins/tracker/include/REST/Artifact/PUTHandler.php +3 −1 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/AllLinksToLinksKeyValuesConverter.php +47 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/AllLinksToLinksKeyValuesConverterTest.php +60 −0 Go to diff View file