stable
Clone or download
request #9328 Tracker XML import deal with static ugroups for workflow transitions
if your XML contains something like: <workflow> <field_id REF="F64037016"/> <is_used>0</is_used> <transitions> <transition> <from_id REF="V6403701600"/> <to_id REF="V6403701601"/> <conditions> <condition type="perms"> <permissions> <permission ugroup="developer"/> </permissions> </condition> <condition type="notempty"> <field REF="F64037014"/> </condition> </conditions> </transition> <transition> <from_id REF="null"/> <to_id REF="V6403701600"/> <conditions/> </transition> </transitions> </workflow> The imported transition must define the developper ugroup instead of project members. Change-Id: I329aa0314da32d5479fdb8dd9487607f160ace5d
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/TrackerXmlImport.class.php | +6 | −1 | Go to diff View file |
M | plugins/tracker/include/workflow/Transition/Condition/Permissions/Factory.class.php | +16 | −1 | Go to diff View file |
M | plugins/tracker/include/workflow/Transition/ConditionFactory.class.php | +16 | −6 | Go to diff View file |
M | plugins/tracker/include/workflow/TransitionFactory.class.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/workflow/WorkflowFactory.class.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/tests/workflow/Transition/Condition/Permissions/FactoryTest.php | +6 | −3 | Go to diff View file |
M | plugins/tracker/tests/workflow/Transition/ConditionFactoryTest.php | +29 | −8 | Go to diff View file |
M | plugins/tracker/tests/workflow/TransitionFactoryTest.php | +4 | −4 | Go to diff View file |
M | plugins/tracker/tests/workflow/WorkflowFactoryTest.php | +6 | −4 | Go to diff View file |