stable

Clone or download

Read-only

Extract Duplicate Field ids validator

Part of story #12187 configure workflow pre & post actions at target state level No functional changes expected. Validation should still stop you when you try to add two "set_field_value" actions with "field_type" "date" with the same field id (as you can't set two different values for the same field). This will make it easier to validate the same thing for int and float field types. Change-Id: Ibfd4c1788afb368da47d6628a453bc3d20775d2f

Modified Files

Name
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +5 −2 Go to diff View file
A plugins/tracker/include/workflow/PostAction/Update/Internal/DuplicateFieldIdException.php +25 −0 Go to diff View file
A plugins/tracker/include/workflow/PostAction/Update/Internal/PostActionFieldIdValidator.php +47 −0 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Update/Internal/SetDateValueValidator.php +18 −14 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Update/SetDateValue.php +2 −2 Go to diff View file
A plugins/tracker/include/workflow/PostAction/Update/SetFieldValue.php +28 −0 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Update/SetFloatValue.php +2 −2 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Update/SetIntValue.php +2 −2 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/PostActionFieldIdValidatorTest.php +59 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/SetDateValueValidatorTest.php +22 −19 Go to diff View file