stable

Clone or download

Read-only

Fix workflow transition deletion when workflow does not exist

Part of story #12187 configure workflow pre & post actions at target state level How to test: use api explorer to call PATCH /trackers/:id with following query parameter : { "workflow": { "delete_transitions_rules": true } }. If a workflow already exists on this tracker, first call should be 200. And second call (or first one if no workflow on this tracker) have to be 400 (instead of 500). Change-Id: I144ffce2529e3ef82f3c5391407f4f9caaa354cb

Modified Files

Name
M plugins/tracker/include/REST/v1/TrackersResource.class.php +3 −4 Go to diff View file
M plugins/tracker/tests/rest/Workflows/TrackerWorkflowsTest.php +21 −0 Go to diff View file