Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17919

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.3
    • 1.9.4
    • Questions
    • None
    • MOODLE_19_STABLE
    • 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

      Attachments

        Activity

          People

            timhunt Tim Hunt
            adamann2 Ann Adamcik
            Sam Hemelryk Sam Hemelryk
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              28/Jan/09