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

Forum maximum number of attachments invalid

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.9, 2.5.5, 2.6.2, 2.7
    • 2.5.7, 2.6.4, 2.7.1
    • Forum
    • MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • wip-MDL-45483-master
    • 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.

    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>

      Attachments

        Activity

          People

            kwiliarty Kevin Wiliarty
            fritzvandover Fritz Vandover
            Ankit Agarwal Ankit Agarwal
            Marina Glancy Marina Glancy
            Frédéric Massart Frédéric Massart
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            9 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Jul/14