Start/End date format, validation bug & date picker overflow issue fix #2915
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Navigate to Other Links → Projects → WBS → Click on WBS name → Add Task
Bug: When the End Date is set earlier than the Start Date, the error message 'Due Date must be greater than Start Date' appears for both fields, but it should only appear for the End Date.
Navigate to Other Links → Projects → WBS → Click on WBS name → Task Edit → Edit
Bug: When the Start Date and End Date are corrected in the Update Task modal (with the Start Date set earlier than the End Date), error messages are still displayed for both dates.
Navigate to Other Links → Projects → WBS → Click on WBS name → Task Edit → Edit
Bug: When the End Date is updated to a date earlier than the Start Date, I was able to save the incorrect updates despite the error messages being displayed.
Navigate to Other Links → Projects → WBS → Click on WBS name → Task Edit → Edit
Bug: When opening a task for editing with incorrectly set dates(see image above), the End Date appears as unspecified (the default date is shown in the End Date field in the image below).
The format of the Start Date does not match the format of the End Date in the Edit Task modal.
Also Fixed the appearance for the date picker in the modal.
In the same page, while opening the date picker there used to be additional space added to the modal.
Related PRS (if any):
Preciously PR 2812 was raised for the same bugs. Due to issues in merge conflict, raising a new PR with the updated fix.
Main changes explained:
How to test:
Screenshots or videos of changes:
Start_Date_Bug_Fix.mp4
Note:
The add task page can be navigated to here in this video
This PR is related to front end PR 2335. Same bugs were fixed in the Add Task modal.