Steps to Reproduce
- In Capture, create/open Event A for Org Unit A.
- Upload File A into the File-type data element.
- Save the event.
- Create/open Event B for Org Unit B (same program/stage and same file-type data element).
- Upload File B into the same data element.
- Save the event.
- Go back and open Event A (Org Unit A).
- Click/open the file shown in the file-type data element.
Actual Result
- Event A opens File B (the most recently uploaded file for that data element), not File A.
- It behaves as if the file reference is not stored/loaded per event, but instead resolves to the latest uploaded file across events.
Expected Result
Event A should open/display File A (the file uploaded for Event A).
Impact
This is a data integrity / patient-record correctness risk:
- Users cannot reliably view the correct attachment per event.
- Historical event attachments appear to “change” after new uploads in other events/org units.
Frequency
- Always
- Reproducible consistently in 2.42 and on Play.
