Forums / General / eZ Survey 2.0 summary result bug.

eZ Survey 2.0 summary result bug.

Author Message

Pawel Graczyk

Thursday 02 October 2008 3:13:38 am

Hi,

There is a problem which survey2.0.
In administration panel->survey->summary results 'Percentage' column is over/under 100%.
(See the screen under a link: http://fotoo.pl/hosting-zdjec/links/survey20 ).
Does anyone know something about it? Is this error connected with:

- counting values (rounding up/down) (summary is close to 100% usually 99% or 101%)

- deleting survey evaluations (What i did when I've been testing survey)

- anything else I don't know about?

Please let me know if you have any information about this bug.

Radek Kuchta

Thursday 02 October 2008 5:35:31 am

Hi Pawel,

Each value of Percentage for every row is counting:

$percentage = (int) round( ( 100 * $row['count'] ) / $count );
(file extension/ezsurvey/modules/survey/classes/ezsurveymultiplechoice.php)

As you can see, the result is rounded.
This value is transferred to a template .../result/overview/multiplechoice.tpl in your extension.

Good luck!

http://ez.no/certification/verify/272582

Pawel Graczyk

Thursday 02 October 2008 9:16:42 am

Thank You. :)

Piotrek Karaƛ

Thursday 02 October 2008 10:33:18 am

You guys stopped talking accross the desk? ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu