stable

Clone or download

Read-only

Use state object in REST PATCH workflow_transitions/:id

story #12189 prevent field modification according to state This commit does not bring any functional change. It uses the newly created state object in the REST route PATCH workflow_transitions/:id. Change-Id: I634f971f580d1233d818f50fc8b094200aa623b9

Modified Files

Name
M plugins/tracker/include/REST/v1/Workflow/TransitionPatcher.php +35 −28 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +16 −6 Go to diff View file
A plugins/tracker/include/Workflow/SimpleMode/State/TransitionUpdater.php +80 −0 Go to diff View file
M plugins/tracker/phpunit/REST/v1/Workflow/TransitionPatcherTest.php +24 −38 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/SimpleMode/State/TransitionUpdaterTest.php +125 −0 Go to diff View file