mod_quiz_get_quizzes_by_courses is not returning required data

mod_quiz_get_quizzes_by_courses is not returning required data

by Sukhmeet S -
Number of replies: 1

Hi,
We are using 'mod_quiz_get_quizzes_by_courses' service to get all the Moodle quiz (version 3.9) related data required to integrate with our application.

This service does not return all the field if the 'Open the quiz' time is some future date and the quiz has not yet started. Below are some of the fields which are missing if we call the above mentioned service before quiz open time.

  • overduehandling
  • graceperiod
  • questionsperpage

Is there any way in which we can get above field data for a quiz which is scheduled to start at future date?


Average of ratings: -
In reply to Sukhmeet S

Re: mod_quiz_get_quizzes_by_courses is not returning required data

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't know why the service leaves out overduehandling and graceperiod in this case. (Feel free to open a bug in the tracker.

questionsperpage is not really a relevant setting, so it does not matter. (It is only used when building quizzes.)