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

Resource visibility does not reflect actual state when hiding section.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.3
    • Component/s: Course, JavaScript, Resource
    • Labels:
    • Environment:
      Apache 2.2.14 on Ubuntu 10.04 LTS.
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. Add a resource label to a section as well as a simple activity.
      2. Then toggle the section visibility to hidden.
      3. Turn editing off.
      4. Turn editing back on.
      5. Notice that the visibility setting (eye) on the resource does not reflect the state shown when editing is off.

      Show
      1. Add a resource label to a section as well as a simple activity. 2. Then toggle the section visibility to hidden. 3. Turn editing off. 4. Turn editing back on. 5. Notice that the visibility setting (eye) on the resource does not reflect the state shown when editing is off.
    • Workaround:
      Hide

      Hide resource, then toggle section hide, then toggle section show. Turn editing off.

      Show
      Hide resource, then toggle section hide, then toggle section show. Turn editing off.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE

      Description

      When switching between editing turned on and turned off the resource visibility state does not reflect the actual state when section is hidden/shown.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            salvetore Michael de Raadt added a comment -

            Hi, Tom.

            I tried this in multiple combinations, including without Ajax course editing. However I could not see any problem.

            Could you add some more detail to your replication steps, distinguishing hiding of resources/activities and sections? Perhaps you could also include some screenshots to exemplify what you are seeing.

            Show
            salvetore Michael de Raadt added a comment - Hi, Tom. I tried this in multiple combinations, including without Ajax course editing. However I could not see any problem. Could you add some more detail to your replication steps, distinguishing hiding of resources/activities and sections? Perhaps you could also include some screenshots to exemplify what you are seeing.
            Hide
            butkiewiczt Tom Butkiewicz added a comment -

            Hello,

            Thank you for the reply. I have recorded a quick video of a base Moodle 2.1.2+ install. Please take note of the label and test file and how they change visibility when the section is toggled hidden/show.

            http://www.youtube.com/watch?v=YJYfyKmI_BU

            Thank you!

            Show
            butkiewiczt Tom Butkiewicz added a comment - Hello, Thank you for the reply. I have recorded a quick video of a base Moodle 2.1.2+ install. Please take note of the label and test file and how they change visibility when the section is toggled hidden/show. http://www.youtube.com/watch?v=YJYfyKmI_BU Thank you!
            Hide
            salvetore Michael de Raadt added a comment -

            Great. Thanks for demonstrating that. I was able to replicate the same results now.

            I've put that on the backlog.

            In the meantime feel free to help us work on this issue. If you are able to provide a patch, please add a patch label so we will spot it.

            Show
            salvetore Michael de Raadt added a comment - Great. Thanks for demonstrating that. I was able to replicate the same results now. I've put that on the backlog. In the meantime feel free to help us work on this issue. If you are able to provide a patch, please add a patch label so we will spot it.
            Hide
            poltawski Dan Poltawski added a comment -

            This has been fixed by MDL-31052 in 2.3

            Show
            poltawski Dan Poltawski added a comment - This has been fixed by MDL-31052 in 2.3

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12