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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              adamann2 Ann Adamcik
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Jan/09