stable
Clone or download
When a field is changed from a value to no value, then its snapshot looks like: ``` [ 'fieldId' => 'customfield_10057', 'from' => '10023', 'fromString' => '06. PKI', 'to' => null, 'toString' => '', ], ``` However it is considered as a string value, as we can see in the logs: ``` [debug] |_ Generate string value for customfield_10057 ``` (expected: `Generate list value for customfield_10057`) Therefore in `plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/FieldChangeXMLExporter.php:137` the value is a string whereas we are expecting an array: PHP raises an error "Uncaught TypeError: Cannot access offset of type string on string" Part of request #40066: TypeError: Cannot access offset of type string on string Change-Id: If475ac6bdbbf7d9d07a322911bd6b078e129ee60
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/Snapshot/ChangelogSnapshotBuilder.php | +22 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/Snapshot/ChangelogSnapshotBuilderTest.php | +53 | −2 | Go to diff View file |
M | src/common/User/User.class.php | +1 | −0 | Go to diff View file |