'Follow-up until' date of an event participant's resulting case does not get updated #8730
Labels
backend
Affects the web backend
bug
An error or misbehavior of an existing feature (ticket type)
cases
events
laboratory
Samples, pathogen tests and lab messages
major
A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects)
qa-verified
Issue has been tested and verified by QA
Milestone
Bug Description
When a resulting case is created for an event participant, and the 'Date sample was collected' is set to an earlier date than the event's and case's 'Date of report', the 'Follow-up until' date of the case is not updated correctly.
Steps to Reproduce
=> 'Create resulting case from event participant with positive test result?' pop-up is triggered;
=> 'Create new case' from is triggered;
Actual Behavior
'Follow-up until date' is not updated based on the 'Date sample was collected', only the 'Expected follow-up until' date is updated.
Expected Behavior
'Follow-up until date' should be updated - just as 'Expected follow-up until date' - and it should be calculated based on the 'Date sample was collected' when this date is set earlier than the 'Date of report' of the case.
Screenshots
'Date of report' of the case and 'Date sample was collected':
'Follow-up until' and 'Expected follow-up until' dates:
System Details
Additional Information
The text was updated successfully, but these errors were encountered: