Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2012 at 19:07 UTC
Updated:
27 Jun 2013 at 03:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
pdrake commentedThis patch excludes the standard deviation table if the standard deviation is 0, which solves the infinite loop that causes the memory limit error. The second patch ("no_whitespace") was created by running git diff -w and is not intended to be used, but makes review much easier.
Comment #2
bxtaylor commentedI was able to reproduce the bug when only one submission exists. The patch applied cleanly and fixed the memory exhaustion issue.
From what I see, this prevents the distribution table from being printed if there's only one submission.
Comment #3
quicksketchThanks guys. If we're skipping the entire set of processing, could we short-circuit the function call and just use:
I don't normally advocate multiple returns, but in this situation it avoids a lot of indentation and makes the code clearer. Acceptable?
Comment #4
bxtaylor commentedWorks for me. Here's a reroll...
Comment #5
pdrake commentedI'm good with just short-circuiting here. It may be worthy of a comment to ensure nobody adds additional analysis rows after the stddev table rows?
Comment #6
pdrake commentedConditional needs proper spacing.
Comment #7
bxtaylor commentedRerolled with conditional spacing fix and comment.
Comment #8
pdrake commentedWorks for me.
Comment #9
pdrake commentedOk, I noticed one more spacing problem. This patch resolves that.
Comment #10
bxtaylor commentedAh yes...that space on the return line...
Looks good to me, now.
Comment #11
quicksketchThanks guys. Committed (finally)! Added to all 3.x and 4.x branches.