SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 142 forks source link

Date of discharge o #8331

Open bernardsilenou opened 2 years ago

bernardsilenou commented 2 years ago

Bug Description

Steps to Reproduce

  1. Create a hospitalization or future hospitalization for a case
  2. Set date of discharge or end of stay 10 days after the current calendar date
  3. Save the data and two error appears: "Date of discharge can not be more than 7 days in future" or "date of ...can not be in future"

Expected Behavior

On e validation does not allow for future dates but one allows for up to 7 days in future. It would be good to have the same validation for all date fields, except there is a reason to allow some to have up to 7 days.

System Details

Additional Information

bernardsilenou commented 2 years ago

@kwa20 @JaquM-HZI @MateStrysewske Can you remember if this is a bug or using 7 days validation was a change we added?

MateStrysewske commented 2 years ago

@bernardsilenou This was definitely done on purpose, otherwise there wouldn't be such a specific date validation for this field. Please discuss whether we're supposed to change this and if so, turn this issue into a change request.