Download & Extend

Required time fields will not validate if minutes are 00

Project:Webform
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

No matter what settings used and what values are selected, when the fields are marked required they will not validate.

After some searching I've found the code that causes this. I'll be submitting a patch soon.

Comments

#1

Status:active» needs review

Here's the patch.

AttachmentSize
1096946-Required-time-fields-D6.patch 1.01 KB

#2

Title:Required time fields will not validate even though a value is supplied» Required time fields will not validate if minutes are 00
Status:needs review» fixed

Thanks I've committed the main fix from your patch. Regarding the confusion over #default_value and #value (noted in your patch), that problem has been fixed in #1150576: The "time" component should use a #process function for expanding itself.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here