Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questionnaire completion is not supported by Totara Recertification #475

Open
hertzel-kuriel opened this issue Apr 6, 2023 · 0 comments

Comments

@hertzel-kuriel
Copy link

Hi,
We are using the questionnaire module on Totara.
Regular completion of the questionnaire activity in a course (when questionnaire is submitted) works as expected.
However, when the questionnaire is part of a course that is part of a certification, the a user recertification time come, all activities in the course are begin reset to not complete status so the user can redo and complete the activity again.

All other built in Moodle/ Totara modules support this except the Questionnaire module which remains in completion mode.
The activity reset is done by updating the state in course_modules_completion, where totara uses update_state function in each plugin
Update Sate function is defined in server/lib/completionlib.php file
public function update_state($cm, $possibleresult = COMPLETION_UNKNOWN, $userid = 0, $current = null) {

}

Our question is where in the questionnaire plugin we can use this function so that it changes the state when certification window open from state 1 to state 0 by cron?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant