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

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

    XMLWordPrintable

    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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              davosmith Davo Smith
              Reporter:
              dobedobedoh Andrew Lyons
              Peer reviewer:
              Damyon Wiese Damyon Wiese
              Integrator:
              Sam Hemelryk Sam Hemelryk
              Tester:
              Frédéric Massart Frédéric Massart
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

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