stable

Clone or download

Read-only

Disallow selecting the workflow field as a frozen one

This is part of story #12189 prevent field modification according to state If a field id provided in the field_ids attribute is the field used to define the workflow, the REST route throws an error. The selected field ids are not yet saved in database. You still need to defined the feature flag to be able to defined frozen field action in REST. Change-Id: I765c9198f7e0ad85858affe2abfc5bc6b8248922

Modified Files

Name
M plugins/tracker/include/Workflow/PostAction/Update/Internal/FrozenFieldsValidator.php +17 −3 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/FrozenFieldsValidatorTest.php +54 −5 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +13 −5 Go to diff View file
M plugins/tracker/tests/rest/TrackerBase.php +2 −2 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SimpleModeTest.php +35 −1 Go to diff View file