stable
Clone or download
Read-only
Part of story #12189 prevent field modification according to state How to test: Forge your DB: - Get a transition id (for example, from "To Do" to "On going") and insert a new row in plugin_tracker_workflow_transition_postactions_read_only - Get the id you just inserted, get field ids and insert new rows in plugin_tracker_workflow_transition_postactions_read_only_fields - Set an artifact to "On going" - When you edit it, all the fields you marked as read-only in the DB should appear non-editable (same as when you don't have permission to update them) Will be done later: - Checking the various modals - Checking Mass change and Artifact Copy views Change-Id: I99f101e412ea22dbf1ec65d4e7fa9f34bee565cf
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php | +4 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php | +36 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Tracker.class.php | +8 | −3 | Go to diff View file |
A | plugins/tracker/include/Workflow/PostAction/ReadOnly/ReadOnlyFieldDetector.php | +60 | −0 | Go to diff View file |
M | plugins/tracker/include/Workflow/WorkflowUpdateChecker.php | +6 | −24 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/Workflow/PostAction/ReadOnly/ReadOnlyFieldDetectorTest.php | +182 | −0 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/Workflow/WorkflowUpdateCheckerTest.php | +26 | −180 | Go to diff View file |