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.

CommentFileSizeAuthor
#1 webform_export_empty_hidden.patch451 bytesquicksketch

Comments

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new451 bytes

Thanks for the report. I've committed this patch which has the same effect.

Status: Fixed » Closed (fixed)

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