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

Essay qtype: Error message is displayed when Allow attachments field is reset to 'No'

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-73155_311
    • Hide
      1. Create an essay question type.
      2. Enter the required details
      3. Set 'Allow attachments' to 'Unlimited' and 'Require attachments' to = '3'
      4. Press Save changes or Save changes and continue editing button.
      5. Now edit the question and set Allow attachments to 'No'
      6. Press Save changes or Save changes and continue editing button.
      7. Verify you don't see 'You cannot require more attachments than you allow.'
      8. In other words, when Allow attachments is set to 'No', 'Require attachments' field should be reset to 'Attachments are optional' automatically.
      Show
      Create an essay question type. Enter the required details Set ' Allow attachments ' to 'Unlimited' and ' Require attachments ' to = '3' Press Save changes or Save changes and continue editing button. Now edit the question and set Allow attachments to 'No' Press Save changes or Save changes and continue editing button. Verify you don't see ' You cannot require more attachments than you allow .' In other words, when Allow attachments is set to 'No', ' Require attachments ' field should be reset to 'Attachments are optional' automatically.

    Description

      Steps:
      Create an essay question type.
      Enter the required details and set the following field values: Allow attachments = 'Unlimited' and Require attachments = '3'.
      Save changes.
      Now edit the question and set Allow attachments = 'No'
      Expected result: User should be allowed to set the Allow attachments = 'No'
      Actual result: Error message is displayed - 'You cannot require more attachments than you allow.'
      and is in the hidden fields which can seen by again setting the Allow attachments = 'Unlimited' or any other value..

      The alternative workaround is to first set Require attachments = 'Attachments are optional' and save changes. Then edit the question and set Allow attachments = 'No', the changes can be saved and works fine.

      Attachments

        Issue Links

          Activity

            People

              mkassaei Mahmoud Kassaei
              mkassaei Mahmoud Kassaei
              Tim Hunt Tim Hunt
              Andrew Lyons Andrew Lyons
              Gladys Basiana Gladys Basiana
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/Jan/22

                Time Tracking

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