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

Creating new resources via DND in a hidden section sets visibility incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.3.5, 2.4.2
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      • Drag a new file into a visible section
      • Confirm that the new file is visible
      • Hide the section
      • Confirm that both the new file and the section as a whole appear hidden
      • Drag another new file into the now hidden section
      • Confirm that the new file appears hidden
      • Toggle the section visibility
      • Confirm that both new files and the section as a whole appear visible
      Show
      Drag a new file into a visible section Confirm that the new file is visible Hide the section Confirm that both the new file and the section as a whole appear hidden Drag another new file into the now hidden section Confirm that the new file appears hidden Toggle the section visibility Confirm that both new files and the section as a whole appear visible
    • Workaround:
      Hide

      Unhide the section, toggle the resource and then hide the section again.

      Edit the resource's settings and change the visibility there.

      Show
      Unhide the section, toggle the resource and then hide the section again. Edit the resource's settings and change the visibility there.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-35568_dndupload_hidden

      Description

      If a section is hidden, and you drag/drop a new resource into it, the new resource is created with visible of 1.
      When you unhide the section, the resource visibility goes from 1 (visible) to 0 (hidden).

      Since it's not easy to change the visibility of a resource within a hidden section, this could lead to confusion, chaos and eventually anarchy.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Mar/13