stable

Clone or download

Read-only

fix: use the right code error when a field is not valid

Part of story #24970 [modal] select type for links To test you can try to delete a "_is_mirrored" link type via the artifact modal or put an unexisting artifact id in the payload when you try to update an artifact link with REST. Instead of 500, you shoud the 400 error code Change-Id: I042139f7728b2ff3f799a16df42eff6e686004bc

Modified Files

Name
M plugins/tracker/include/REST/Artifact/PUTHandler.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/PUTHandlerTest.php +2 −0 Go to diff View file
M tests/rest/tests/ArtifactsTest.php +1 −1 Go to diff View file