Moodle

Cannot edit questions from quiz preview page - edit link has incorrect cmid

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.9.4
  • Component/s: Questions
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

When previewing a quiz, clicking the edit icon next to a question results in an error (cmunknown), or an attempt to edit a resource in a different course. Editing the same questions from the quiz Edit tab works fine.

To reproduce:

1. Go to demo.moodle.org, Features Demo, A listening quiz.
2. Click the Preview tab and click the edit icon next to the question. Note the cmid in the url is 10, the quiz id.

http://demo.moodle.org/question/question.php?id=43&cmid=10&returnurl=http%3A%2F%2Fdemo.moodle.org%2Fmod%2Fquiz%2Fattempt.php%3Fq%3D10%26amp%3Bpage%3D0

3. Go back to the quiz, go to the edit tab and click the edit icon next to the question. The cmid in this case is 223, and the question edit page loads successfully.

http://demo.moodle.org/question/question.php?returnurl=http%3A%2F%2Fdemo.moodle.org%2Fmod%2Fquiz%2Fedit.php%3Fcmid%3D228&cmid=228&id=43

Activity

Hide
Tim Hunt added a comment -

Oops looks like this is a regression caused by MDL-6085.

Show
Tim Hunt added a comment - Oops looks like this is a regression caused by MDL-6085.
Hide
Tim Hunt added a comment -

Thank you for finding this problem. Fixed now.

Show
Tim Hunt added a comment - Thank you for finding this problem. Fixed now.
Hide
Sam Hemelryk added a comment -

Confirmed Resolved

Show
Sam Hemelryk added a comment - Confirmed Resolved

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: