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

JavaScript error on "Answer the questions" page #583

Closed
leonstr opened this issue Jul 26, 2024 · 1 comment
Closed

JavaScript error on "Answer the questions" page #583

leonstr opened this issue Jul 26, 2024 · 1 comment

Comments

@leonstr
Copy link
Contributor

leonstr commented Jul 26, 2024

core_formchangechecker was removed in Moodle 4.3.3 (MDL-72308) but this is used by mod_questionnaire on the Answer the questions page which results in an error in the browser console and 21 Behat scenario failures with Moodle 4.4.

Steps to reproduce issue

  1. Create a course, enrol a teacher and student.
  2. As the teacher:
  3. Add a Questionnaire to the course.
  4. Click "Add questions" and add a question.
  5. As the student click on the Questionnaire on the course page, then click "Answer the questions...".

Expected results

The page loads with no JavaScript errors.

Actual results

The browser console shows: Uncaught TypeError: M.core_formchangechecker is undefined (Firefox) or TypeError: Cannot read properties of undefined (reading 'init') (Chrome).

Environment: Moodle 4.4.1+ (Build: 20240712), PHP 8.1.19, mod_questionnaire 2022121600.02.

@leonstr
Copy link
Contributor Author

leonstr commented Aug 28, 2024

Fixed in 852486f.

@leonstr leonstr closed this as completed Aug 28, 2024
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