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

Forum maximum number of attachments invalid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.9, 2.5.5, 2.6.2, 2.7
    • Fix Version/s: 2.5.7, 2.6.4, 2.7.1
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide

      Before upgrade:

      1. Create a course.
      2. Create a forum. Set "Maximum number of attachments" to 20 (or 50 or 100).
      3. When you add a discussion topic you will notice that it says that only 11 (or 12 or 13) attachments are allowed.

      Upgrade:

      1. Go to your forum that you created above, make sure it now allows 20 (or 50 or 100) attachments.
      2. Create a forum. Set "Maximum number of attachments" to 20.
      3. Add a discussion topic to the forum. Drag 20 files into the Attachment uploader.
      Show
      Before upgrade: Create a course. Create a forum. Set "Maximum number of attachments" to 20 (or 50 or 100). When you add a discussion topic you will notice that it says that only 11 (or 12 or 13) attachments are allowed. Upgrade: Go to your forum that you created above, make sure it now allows 20 (or 50 or 100) attachments. Create a forum. Set "Maximum number of attachments" to 20. Add a discussion topic to the forum. Drag 20 files into the Attachment uploader.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull 2.7 Branch:
      wip-MDL-45483-MOODLE_27_STABLE
    • Pull Master Branch:
      wip-MDL-45483-master

      Description

      I have set the maximum number of attachments in a standard forum to 20, but it only allows 11 attachments.

      It looks to be a basic error in the attachments dropdown code. Here's a snippet from the forum editing page:

      <select name="maxattachments" id="id_maxattachments">
      <option value="0">0</option>
      <option value="1">1</option>
      <option value="2">2</option>
      <option value="3">3</option>
      <option value="4">4</option>
      <option value="5">5</option>
      <option value="6">6</option>
      <option value="7">7</option>
      <option value="8">8</option>
      <option value="9">9</option>
      <option value="10">10</option>
      <option value="11" selected="selected">20</option>
      <option value="12">50</option>
      <option value="13">100</option>
      </select>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14