Skip to content

OOO request fails when today’s date is selected. #1125

@Dhirenderchoudhary

Description

@Dhirenderchoudhary

Description:

There is a bug when today’s date is selected while creating an OOO request - the API returns 400 Bad Request due to the current validation logic.

I wanted to confirm the expected behaviour so I can fix it correctly:

If today’s date is NOT allowed:

Then the popup message needs to be updated.
Currently it says:
“from date must be equal to or greater than today’s date”
which is misleading and should reflect that only future dates are allowed.

If today’s date iS allowed:

Then the backend validation logic needs to be updated in the code to allow same-day requests.

Please let me know which behaviour we want, and I’ll make the required changes accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions