Project

General

Profile

Actions

Bug #11578

closed

Dbo Forms: correctly validate invalid dates and times

Added by Yoika Ghysens 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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.

Actions #1

Updated by Yoika Ghysens 12 months ago

  • Status changed from InProgress to Review
  • Assignee changed from Yoika Ghysens to Marnik Roosen
Actions #2

Updated by Yoika Ghysens 12 months ago

  • Assignee changed from Marnik Roosen to Roel Standaert
Actions #3

Updated by Roel Standaert 12 months ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Roel Standaert to Yoika Ghysens
  • % Done changed from 0 to 100
Actions #4

Updated by Matthias Van Ceulebroeck 11 months ago

  • Status changed from Implemented @Emweb to Resolved
Actions #5

Updated by Matthias Van Ceulebroeck 11 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF