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) a payload with at least two different fields updated, artifact link must not be the first one: ``` { "values": [{"field_id": 542, "value": "random"}, { "field_id": 543, "all_links": [ {"id": 11, "direction": "forward", "type": ""}, ] }] } ``` => The artifact is updated and no warning is returned Change-Id: I77cec15a7c08768b6cad0593819cca7547a30768

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/AllLinksToLinksKeyValuesConverter.php +16 −8 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/AllLinksToLinksKeyValuesConverterTest.php +5 −2 Go to diff View file