Download & Extend

Grid answer option "0" causes faulty analysis table

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

Issue Summary

If "0" (without quotes) is an option in a grid question, it seems that the analysis page gets the information wrong.
* The "0" option is left out in the table header.
* The answers in the first column are all set to 0. (Or maybe it's the column with 0 as header - they coincide for me.)
* Because one table header cell is missing, the other header cells are shifted, leaving one column of answers orphaned.
A screenshot of results is included.

I think I tracked down the unwanted effect to line 248 in components/grid.inc, but since I don't know much about how Webform works I can't suggest what to do about it.

Thanks for a great module.

//Johan Falk, Sweden

AttachmentSize
grid-analysis.png31.77 KB

Comments

#1

Status:active» fixed

Thanks, I actually found a few more bugs regarding the value of "0", all of which should be fixed with the attached patch, which I've committed. Thanks for the report!

AttachmentSize
webform_grid_zero.patch 1.9 KB

#2

Status:fixed» closed (fixed)

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

nobody click here