Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2012 at 04:14 UTC
Updated:
24 Mar 2012 at 04:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchThis patch corrects the problem by always executing the conditionals for "Average and population count", even if there aren't any values. This sets the variables for $average and $average_title. To avoid divide-by-zero errors, I added an extra check before calculating the averages.
Comment #2
quicksketchOh, this patch also solves the "User entered value" being inaccurate, since a user making a submission is not the same as submitting a value if they left the field blank.
Comment #3
quicksketchCommitted to both branches.