Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a time value is sent with minutes as '00' then the field will show as empty when viewing results.
Comment | File | Size | Author |
---|---|---|---|
#8 | webform-839026-4.patch | 805 bytes | realityloop |
#6 | webform-839026-3.patch | 815 bytes | realityloop |
#4 | webform-839026-2.patch | 764 bytes | realityloop |
#3 | webform-839026.patch | 0 bytes | realityloop |
Comments
Comment #1
realityloopIt looks like the data is being stored in the DB, but the display view shows nothing for that field
Comment #2
quicksketchThanks for the report. Definitely not a "critical" issue though.
Comment #3
realityloopPatch attached
Can't seem to attach files at the moment :/
Comment #4
realityloopPatch attached succesfully..
Comment #5
quicksketchHour could also be 0 if you're using a 24-hour clock. We should probably check that these values are not NULL rather than letting PHP consider 0 to be empty.
Comment #6
realityloopPatch attached that checks '! is_null' on both values instead.
Comment #7
quicksketchRather than
! is_null ()
,isset()
would probably be a tad more efficient approach. Either way we won't want to add in the extra space before and after the function call, per the Drupal coding standards.Comment #8
realitylooppatch updated to isset
Comment #9
quicksketchLooks good to me.
Comment #10
quicksketchCommitted.
Comment #11
AlanY CreditAttribution: AlanY commentedThis is happening for text fields as well.
Even for required fields, when a '0' value is entered the submission view shows blank and the email shows blank also.
Haven't tested textareas, selects.
Comment #12
AlanY CreditAttribution: AlanY commentedWould changing line 178 to ! is_null() in textfield.inc help?
Comment #13
realityloopAlanY that is a separate issue please post new issue