Closed (fixed)
Project:
Webform
Version:
7.x-3.15
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2012 at 15:11 UTC
Updated:
12 Mar 2012 at 06:20 UTC
Jump to comment: Most recent file
The last 3 lines of webform/components/hidden.inc should probably be like the following, to prevent this issue:
function _webform_csv_data_hidden($component, $export_options, $value) {
return ($value[0] !== '') ? $value[0] : '';
}
The value of "0" is otherwise maintained when viewing the submission -- just not when downloading the actual CSV / Excel doc.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_export_empty_hidden.patch | 451 bytes | quicksketch |
Comments
Comment #1
quicksketchThanks for the report. I've committed this patch which has the same effect.