Loading...
 
Skip to main content

Surveys not showing the vote count nor average from a rating scale 1...10

Status
Pending
Subject
Surveys not showing the vote count nor average from a rating scale 1...10
Version
13.x
Category
  • Error
Feature
Survey
Resolution status
New
Submitted by
Xavier de Pedro
Lastmod by
manivannans
Rating
(0)
Description

No idea whether this is also happening in 12.x or earlier. I just noticed this in trunk, while reviewing the improvements to Surveys in order to update the documentation page Tiki13

I created a survey as admin, added 3 questions (one of them is a rating from 1 to 10 with radio buttons). I provided 2 answers as user admin, and I saw that no vote count nor average was shown from the rating scale 1...10

Image

Solution

Hi Nelson,
The issue due to the value is not updated in db. Because in the table "tiki_survey_questions" the fields "votes" and "value" is having default value as "Null". That is updating using the increment method to increment the votes counting and rating. From "Null" it is not incrementing.
we can put default value as "0" for the two fields.

I made the changes to tiki.sql and a patch file is created to fix the issue.
Please refer commit-id--51734
Please check and advice.

Workaround
note: mani is having a look to see if he can fix.
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5238
Created
Wednesday 14 May, 2014 08:34:37 UTC
by Xavier de Pedro
LastModif
Wednesday 25 June, 2014 15:16:25 UTC


Show PHP error messages