Skip to content

[C2] Quiz: question stats: calculation error when there are many answers #7038

@NicoDucou

Description

@NicoDucou

On Chamilo Master en the 12/11/2025 when entering the question stats page (main/exercise/question_stats.php) we have a problem with at least questions of type "Sequence ordering" and all type of "Matching".
The number of wrong answer indicates the total number of element that are incorrect, so for a question you could have 3 errors, but for the total it only consider the number of attempts.

Since a line correspond to a full question the stat should be for the full attempt, not for individual items in the question.
So the stat should be "number of incorrect attempt"/"Total number of attempt" where "number of incorrect attempt" is the number of attempt that did not have all the items correct.

For the moment we have something like this which is strange when you a 200% stat :

Image

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions