Moodle

Incorrect grading when Each attempt builds on the last and questions on more than one page

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.6.3, 1.7
  • Fix Version/s: 1.6.4, 1.7.1, 1.8
  • Component/s: Quiz
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

Description

Peter Sereinigg noticed that when quiz attempts build on last one and questions are on several pages, the score is not calculated correctly - the problem is that when you press the finish button, only the score from the active page is calculated.

Steps to reproduce:
1/ create new quiz - Each attempt builds on the last-yes, Questions per page-3, Attempts allowed 4
2/ create more than 3 question and add them to quiz
3/ make first attempt - select some answers
4/ make second attempt - but now only press save Submitt all and finish on first page
5/ make third attempt - but now only press save Submitt all and finish on second page
6/ each score is different - first is ok, second sums grades only only from first page and third from second page

Attaching sample backup from latest 1.6.3+

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

The problem seems to be also in 1.7.x

Show
Petr Škoda (skodak) added a comment - The problem seems to be also in 1.7.x
Hide
Peter Sereinigg added a comment -

We tested it on another server - same release - and there is the same problem - must be a bug ...
thanks for a quick help!

Show
Peter Sereinigg added a comment - We tested it on another server - same release - and there is the same problem - must be a bug ... thanks for a quick help!
Hide
Petr Škoda (skodak) added a comment -

I think I have found the problem
posting here for review

Show
Petr Škoda (skodak) added a comment - I think I have found the problem posting here for review
Hide
Petr Škoda (skodak) added a comment -

fixed in cvs, closing now - please reopen if needed

Show
Petr Škoda (skodak) added a comment - fixed in cvs, closing now - please reopen if needed
Hide
Allisun O'Connell added a comment -

We are experiencing this problem in 1.8.2 - going to try the patch.

Show
Allisun O'Connell added a comment - We are experiencing this problem in 1.8.2 - going to try the patch.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: