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

Essay Question Editing Bug


    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.11.5
    • Questions, Quiz
    • None

      Creating an Essay question in a Question Bank can cause an unintended setting issue that appears to be a bug. 

      First, to reproduce/break it: 

      1. Enter any course, visit the Question Bank, Create a new Essay question. 
      2. Provide filler verbiage for question name/text, change 'allow attachments' to "1", change 'Require attachments' to "1". Save the question.
      3. Create another new Essay question - Moodle has now remembered your past settings (Settings should reflect 'allow attachments = 1' and 'require attachments = 1').
      4. Change 'Allow attachments' to "No" and press save.
      5. The save will fail, 'require attachments' will state in red "you cannot require more attachments than you allow." This will then disappear unprompted.
      6. While only seeing 'Allow attachments' = "No", you will be unable to save, and stuck editing. 


      TO FIX

      1. Change 'Allow attachments' to "1", change 'Require attachments" to "Attachments are optional". Save the question - it will work. 
      2. Edit that same essay question, now change 'Allow attachments' from "1" to "No". Save the question - it will now work where it had failed in step #5 above. 


      In short, the Essay settings will not allow you to shift from 'Allow attachments "1" to "No" unless the subsetting, 'Require attachments', is set to "Attachments are optional", despite that subsetting disappearing when 'Allow attachments' is set to 'No'. 


      The exact Moodle version reflected in our site is 3.11.4+ (Build: 20211116)


      Please let me know if I can clarify any of these Instructions/steps to aid in resolving the bug. 


        1. Steps1and2.png
          21 kB
        2. steps3 4 and 5.png
          steps3 4 and 5.png
          11 kB
        3. ToFixStep1.png
          9 kB
        4. ToFixStep2.png
          18 kB

            timhunt Tim Hunt
            Green Patrick
            0 Vote for this issue
            1 Start watching this issue


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