Actions
Bug #11578
closedDbo Forms: correctly validate invalid dates and times
Start date:
05/03/2023
Due date:
% Done:
100%
Estimated time:
Description
Whenever a user would insert an invalid date or time within a Wt Dbo form, the system would clear the value in fields and as long as the fields aren't required, validation would succeed.
This is due to WDate::toString and WTime::toString returning an empty string by default for invalid WDate/WTime objects. This empty string would then get passed to the validator through the validate functions of WFormModel.
We need to make the Dbo Forms system aware of this so that it can validate the values correctly.
Updated by Yoika Ghysens over 2 years ago
- Status changed from InProgress to Review
- Assignee changed from Yoika Ghysens to Marnik Roosen
Updated by Yoika Ghysens over 2 years ago
- Assignee changed from Marnik Roosen to Roel Standaert
Updated by Roel Standaert over 2 years ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Roel Standaert to Yoika Ghysens
- % Done changed from 0 to 100
Updated by Matthias Van Ceulebroeck over 2 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Matthias Van Ceulebroeck over 2 years ago
- Status changed from Resolved to Closed
Actions