PoetOS/moodle-mod_questionnaire

several admin and reporting options missing after using template

Opened this issue · 3 comments

When setting up a new questionnaire from scratch, the behavior is fine.
However, if I use a questionnaire template, several admin options are missing from the activity admin menu:

  • I cannot see the "Advanced settings"
  • I cannot see the "Questions"
  • I cannot see the "Feedback"
  • I cannot see the "View All Responses" area and its subitems

Due to this, all responses from the students are inaccessible and lost. How can I get access to the answers given so far?

We are on Moodle 3.11.9
full activity admin menu

reduced activity admin menu

Same issue on Moodle 3.11.1 and Questionnaire 3.11.2 (Build - 2023030700).
It seems like students are able to access and submit the questionnaire but results are unavailable.

The Questionnaire 3.11.2 update fixes the issue for new imports.
However for previous questionnaires, all the data is in the database but we can't access the results from Moodle

Any help would be much appreciated.
Daniel

We're still seeing this error in place on new releases

We've replicated this - to replicate, just create a questionnaire using a saved template, the options to view seem to disappear.

Newly created templates seem fine, it's older ones, possible pre moodle 4 upgrade, that are broken.

questionairres using old effected templates do not have an option to view submissions. I tried to substitute the instance reference reference in the URL from a non effected course to an effected one to at least view the responses,

EG /mod/questionnaire/report.php?instance=XX

but received the following, despite being an admin.

Sorry, but you do not currently have permissions to view this page or perform this action.

More information about this error

Debug info:
Error code: nopermissions×Dismiss this notification
Stack trace:
line 92 of /mod/questionnaire/report.php: moodle_exception thrown

Using the latest git release

release = '4.1.0 (Build - 2023081100)'
Moodle 4.1.5 (Build: 20230814)

This might be useful to some of you!

We had a similar issue with missing settings and feedback where some instructors were creating questionnaires using a certain template which happened to be listed under the public templates of our Moodle site. It turns out that this is exactly what public templates are supposed to do, since the "settings available to such questionnaires is limited and you cannot edit its questions nor view the responses".

There was nothing wrong with the plugin at all!

All of the responses are sent back to the original questionnaire, so in order to view the responses you would have to navigate to the course which hosts the original version of the questionnaire (We were fortunate in that the original course name was part of the title of the particular public template).

This works well if you are an instructor for a course which has several class groups on Moodle. However, there are serious consequences if you are not aware of the difference between a template and public questionnaire and it is a very easy mistake to make.