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

Cannot edit 3.11 Calculated Multichoice questions in Moodle 4.0

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE
    • MDL-74941-master
    • Hide

      This is in addition to the Behat test.

      Pre-test setup:

      Standup a new 4.1 environment using the code.

      Actual test:

      • Log in as a site admin
      • Create a course
      • Navigate to course > question bank
      • Navigate to Import
      • Import the question from the All question XML
      • Navigate to the course
      • Create a quiz
      • Add those questions
      • Navigate to the question bank
      • Pick a question and edit the question
      • Click save changes
      • Click next page
      • Confirm:
        • There is no error on the page

       

      Show
      This is in addition to the Behat test. Pre-test setup: Standup a new 4.1 environment using the code. Actual test: Log in as a site admin Create a course Navigate to course > question bank Navigate to Import Import the question from the All question XML Navigate to the course Create a quiz Add those questions Navigate to the question bank Pick a question and edit the question Click save changes Click next page Confirm: There is no error on the page  

      I have a problem with Calculated Multichoice questions.  I have tested this on the Moodle QA course, and the problem exists.

      I export a set of calculated multichoice questions from Moodle 3.11, import them into Moodle 4.0, create a quiz, and preview it.  Everything seems to work.

      Then, try editing a question. Save.  I get an error message (see graphic.)

      If you try to go back to the quiz and preview it, you will get another error message.  However, if you look at the included questions, and change the one that you tried to edit to version V1, the quiz seems to work.

      I haven't tried creating brand new calculated multichoice questions to see how they behave.  I wanted to report this problem with imported calculated multichoice questions to you to get the ball rolling.

      I am attaching my exported questions file.

        1. All_questions-American Commute.xml
          90 kB
          Rick Jerz
        2. CMC Error - 7-22-2022.png
          817 kB
          Rick Jerz
        3. CMC Question Error 9-6-22.png
          270 kB
          Rick Jerz
        4. Error when editing CMC questions.png
          370 kB
          Rick Jerz
        5. Error with fix applied.png
          206 kB
          Rick Jerz
        6. MDL-74941_master.png
          70 kB
          John Edward Pedregosa
        7. MDL-74941_v400.png
          230 kB
          John Edward Pedregosa
        8. Tema1v3preguntas-probador-Práctica tema 1-20220620-0841.xml
          217 kB
          Laurent David

            smbader Steve Bader
            rjerz Rick Jerz
            Tim Hunt Tim Hunt
            Victor Déniz Falcón Victor Déniz Falcón
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            16 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 20 minutes
                1h 20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.