I'm developing request forms for a library setting - anonymous users requesting books to buy, borrow, etc.
I have a webform set up which assigns "today" to the date ordered field. A second date field is called "Needed_By" and this date is not mandatory. If I use the form to create a record, then edit it and view it using Webform's native results tabs, everything is normal.
When I create a Webform Report that uses that Webform, and then edit any given record without making changes and then save it, the "Needed_by" field will display as today's date in the report, even if the field in the original webform is blank.
This is using Webform 7x-3.20, Drupal 7.24.
Suggestion greatly appreciated.
Bobb Menk
MIT Lincoln Laboratory Library
Comments
Comment #1
bmenk CreditAttribution: bmenk commentedComment #2
bmenk CreditAttribution: bmenk commentedI think I've found the problem, but I don't know enough code to try to fix it.
If there's an explicit date set in my Needed_by filed everything works as expected. However if the field is empty rather than NULL Webform Report seems to force a display of today's date. It isn't actually changing the value in the field, it's just displays today's date instead of nothing.
Thanks
Bobb Menk
Comment #3
bmenk CreditAttribution: bmenk commentedA staff member here found the issue in webform_report.inc as described below.
Any chance of this getting vetted and perhaps rolled into a patch? Or even better into next revision of the module?
Bobb Menk