stable
Clone or download
Part of story #12189 prevent field modification according to state How to test: - Create a workflow with at least one transition. Keep its id. - Forge your DB. You should insert one row with the transition id in plugin_tracker_workflow_transition_postactions_read_only - Then insert another row with the field id of a Selectbox field in plugin_tracker_workflow_transition_postactions_read_only_fields - Go to Tracker administration > Field dependencies. You should not be able to create a field dependency with the Selectbox field you used in the database. It should not appear as source or target and forging the <option> should not be allowed. Will be done later: - Finer-grained check: allow field dependencies only if both source and destination are read-only Change-Id: I43d8654ade8ec31f52985288f07fb5809e19df8e
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/db/install.sql | +14 | −0 | Go to diff View file |
A | plugins/tracker/db/mysql/updates/2019/201901161121_create_postaction_readonly_tables.php | +60 | −0 | Go to diff View file |
M | plugins/tracker/db/uninstall.sql | +2 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php | +4 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Rule/Tracker_RulesManager.class.php | +39 | −23 | Go to diff View file |
A | plugins/tracker/include/workflow/PostAction/ReadOnly/ReadOnlyDao.php | +36 | −0 | Go to diff View file |
M | plugins/tracker/include/workflow/WorkflowFactory.class.php | +13 | −4 | Go to diff View file |
M | plugins/tracker/tests/Tracker_RulesManagerTest.php | +121 | −61 | Go to diff View file |
M | plugins/tracker/tests/workflow/WorkflowFactoryTest.php | +10 | −7 | Go to diff View file |