stable
Clone or download
Read-only
fixes request #40430 fatal error in jira exporter
Jira treat the emptying of checkbox and radiobutton the same way than select boxes, that means when a select_box or a radiobutton field has the following changelog entry: ```php [ 'fieldId' => 'customfield_xxx', 'from' => null, 'fromString' => null, 'to' => 'stuff', 'toString' => '', ] ``` Then its corresponding snapshot will be mapped to a list value. This value (an array) will be then cast as a string (since it is originaly a text field) and PHP emits a TypeError. Introduced by 734a577a3557918bd6fac8717df6098471cf7664 How to test: run an import/export manually (like in test_case #19376) Export should finish without error Change-Id: I0153a3b23d3032131b6b53a15fda312ed195159b
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/Snapshot/ChangelogSnapshotBuilder.php | +2 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/Snapshot/ChangelogSnapshotBuilderTest.php | +26 | −1 | Go to diff View file |