PoetOS / moodle-mod_questionnaire

Questionnaire module for Moodle - Contributed module
GNU General Public License v3.0
78 stars 177 forks source link

rate question results download incorrect #163

Open anatolyg7 opened 5 years ago

anatolyg7 commented 5 years ago

Create a questionnaire with rate question. This question should have custom rate. Here is possible answers field: 5=bad 4=not so bad 3=average 2=good 1=very good

When displaying questionnaire results, average score is calculated correctly. But when exporting results to csv, they are exported without regard to custom scale. If the answer is 5=bad, 5 should be exported as answer code, but in csv 1 is exported.

mchurchward commented 5 years ago

Thanks for the report. I'm seeing something similar.

mchurchward commented 5 years ago

Looks like this is a very old problem. The data structures used to keep the calculated responses is only ever used in the question display. Nothing in the response uses this. Its probably time to fix the whole data structure used here...