stable
Clone or download
Read-only
request #13740 REST changeset representation can sometimes add a key to field value
When a field in the artifact returns a null value through REST (for instance permissions on artifact field) then some keys are added into the json content: "values": [ "0": { "field_id": 596, "type": "date", "label": "Start Date", "value": "2019-06-24T00:00:00+02:00" }, "2": { "field_id": 600, "type": "sb", "label": "Status", "values": [ { "id": "405", "label": "Planned", "color": null, "tlp_color": null } ], "bind_value_ids": [ 405 ] } ] This keys can also be added into the webhook payload. Change-Id: I78e48ac063f74d578bc58d908e87f88cac85c8d7
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset.class.php | +7 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset_Comment.class.php | +4 | −3 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/Artifact/Tracker_Artifact_ChangesetTest.php | +199 | −0 | Go to diff View file |