Reproduction steps:
- Create an empty tracker
- Make sure the tracker will be instantiated when creating a new project
- Add a static select box to this tracker with some value
- Create a tracker report, add the list field as one of the criteria and select one the value
- Save the report
- Go back to the field administration and remove the value you selected in the report from the field
- Create a new project from your current project
Project creation trace:
Warning: Undefined array key 3686 in /usr/share/tuleap/plugins/tracker/include/Tracker/Report/dao/ReportCriteriaDao.php on line 102
Fatal error: Uncaught TypeError: Tuleap\Tracker\Report\dao\ReportCriteriaDao::getValueFromRow(): Return value must be of type string, null returned in /usr/share/tuleap/plugins/tracker/include/Tracker/Report/dao/ReportCriteriaDao.php on line 102
If the document generation plugin is enabled it will also break when accessing the report:
Tracker_FormElement_InvalidFieldValueException: in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.php on line 22
The generated tracker structure is also invalid because it references values that does not exist.