Steps to reproduce
- Create a tracker from the Bugs template.
- Create 2 items, 1 without adding details, 1 with details
- Requesting
details = ''
only select the 1 item.
Then :
- export the tracker
- in the project.xml, remove all reference to field_change on detail where data is empty
- change the tracker's name+id
- import the tracker
Finally, in this new tracker, the request details = ''
does not return anything.
Additional information
In my investigations, I noticed the expert query is made against the ChangeSets. And, effectively, in such situation, the ChangeSet does not have the field details=''.
In real world, the XML import file was generated by an internal migration tool. And in this tool, we did not generate field_change for string with empty value. Based on the code, this is explicit, but I don't remember WHY (bad commit message).