stable

Clone or download

Read-only

request #12992 Tracker workflow pre conditions not checked at artifact creation.

If you defined ugroups that are allowed to process a transition from (New artifact) and/or if you defined some fields that must not be empty in this transition, at artifact creation, these pre conditions are currently not checked. To fix this, we will add a forgeupgrade to map the current behaviour (access to all_users and no field empty) and the validation at initial changeset creation. Change-Id: Ic3741ea6bed442f967877ab378069d14d674bc1f

Modified Files

Name
A plugins/tracker/db/mysql/updates/2019/201902121635_map_workflow_pre_condiction_new_artifact_with_old_behaviour.php +90 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreatorBase.class.php +8 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +6 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +6 −3 Go to diff View file
M plugins/tracker/tests/Artifact/Changeset/InitialChangesetCreatorTest.php +29 −3 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_FileTest.php +15 −1 Go to diff View file