stable
Clone or download
Part of story #24970 [modal] select type for links This fix concern the REST route. Forward and reverse are impacted by the fix. How to test: - Make sure the tested artifact has at least two linked artifacts with a defined link type (e.g `_is_child`). One is a forward link and the other is a reverse link - Query PUT `/artifacts/:id` with the already linked artifact and remove the link type ( 'type':'' ). - OR go to the artifact modal and select `is Linked to` as link type and save. - Go to link field of the artifact view (or artifact modal) of the updated artifact => The artifacts have no link type. Here a payload example: ``` { "values": [ { "field_id": 1329, "all_links": [ { "id": 126, "direction": "forward", "type": "" }, { "id": 116, "direction": "forward", "type": "" } ] } ] } ``` Change-Id: Ib8bf2424e6f3ebb9a2d77773018859a7a76cdf4c
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/RESTForwardLinkProxy.php | +6 | −7 | Go to diff View file |
M | plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/RESTReverseLinkProxy.php | +4 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Link/ForwardLinkProxy.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueBuilderTest.php | +2 | −1 | Go to diff View file |
M | plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkInitialChangesetValueBuilderTest.php | +5 | −4 | Go to diff View file |
M | plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/RESTForwardLinkProxyTest.php | +5 | −4 | Go to diff View file |
M | plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/RESTReverseLinkProxyTest.php | +3 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/Link/ForwardLinkProxyTest.php | +0 | −7 | Go to diff View file |