stable

Clone or download

Read-only

fix: request #25331 None values in legacy tracker migration are not well handled

None values in list fields bound to users are not well handled and produce some errors : ``` [warning] [XML import][art # 931] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 931] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 932] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 5219] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 5228] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 5237] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 5238] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 5258] Skipped invalid value 0 for field assigned_to [warning] [XML import][art # 5259] Skipped invalid value 0 for field assigned_to ``` This is because empty values in field_changes for list bound to users are not handled. "None" value must be provided instead. Change-Id: I5830c3e71d0762c4cbe51adae84df6202d772139

Modified Files

Name
M src/common/tracker/ArtifactUserListFieldXMLExporter.class.php +7 −6 Go to diff View file
M tests/unit/common/tracker/ArtifactXMLExporterTest.php +1 −1 Go to diff View file