stable

Clone or download

Read-only

Be able to update artifacts with null changeset values

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 There are several scenarii that can lead to having a null changeset value: - Set up a tracker with a field that nobody can submit and update - Create an artifact - Configure the field to allow update - Set up the field as read-only in the workflow - When you try to update the artifact, you should not be stopped by validation - When you import an artifact via CSV - Set up fields as read-only in the workflow - When you try to update the artifact, you should not be stopped by validation Make sure to check Permissions on artifact and Computed field when they are read-only Change-Id: I7830453bf4559eeb3d3dc7d7b58220c9e57efc4b

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +30 −4 Go to diff View file