Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
542 stars 197 forks source link

Auto-grade feature doesn't work in Manual Grading screen #1375

Closed danjjohnson closed 4 years ago

danjjohnson commented 8 years ago

When you go to grade a quiz manually, the "Auto-grade" button should automatically grade any auto-gradable questions, but it currently does nothing.

dwainm commented 8 years ago

Works for me. Must be a js error. I can see how it does it automatically after the page is loaded. The questions are graded.

danjjohnson commented 5 years ago

Re-opening this, as the Auto Grade button is still not working in the manual grading screen. Tested on brand new site running Sensei LMS 2.1.2

Steps to reproduce:

Nothing happens and the quiz is not auto graded:

image

martinbon commented 4 years ago

Have this issue on 2.4.0

This is what's going on in console: console-ss

donnapep commented 4 years ago

@martinbon Please open a new issue for the error. Thx!

vbarrier commented 4 years ago

Same here, this is when an answer is left blank..

danjjohnson commented 4 years ago

Reopening this. Tested again in Sensei LMS 2.4.0/WP5.4/PHP 7.3.16 using the steps listed above.

The auto-grade button did nothing, and I got the following console error:

Uncaught ReferenceError: user_answers is not defined

image

jom commented 4 years ago

This might have been fixed in 3.0.0 by https://github.com/Automattic/sensei/pull/2919. There is a commit (https://github.com/Automattic/sensei/pull/2919/commits/266f970e1ee2f127908cc46a46d9c8ce6b5f0576) that changes these lines and references the error.

cc: @yscik

yscik commented 4 years ago

Can confirm, issue is fixed with the change in #2919.