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

AJAX visibility toggle on section does not always correctly show activities as visible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3, 2.7.1, 2.8, 2.9
    • Fix Version/s: 2.7.4, 2.8.2
    • Component/s: Course, JavaScript
    • Labels:
    • Testing Instructions:
      Hide
      1. In a course, hide a section
      2. Add a label that is set to be visible (i.e. Visibility: Show) to the hidden section
      3. Add a second label that is set to be hidden (i.e. Visibility: Hide) to the hidden section
      4. Click on the hidden section's eye icon for the section to make it visible
        • Confirm that the first label remains visible
        • Confirm that the second label is not visible
      Show
      In a course, hide a section Add a label that is set to be visible (i.e. Visibility: Show) to the hidden section Add a second label that is set to be hidden (i.e. Visibility: Hide) to the hidden section Click on the hidden section's eye icon for the section to make it visible Confirm that the first label remains visible Confirm that the second label is not visible
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-46491-master

      Description

      Replication steps:

      1. In a course, hide a section
      2. Add a label that is set to be visible (i.e. Visibility: Show) to the hidden section
      3. Add a second label that is set to be hidden (i.e. Visibility: Hide) to the hidden section
      4. Click on the hidden section's eye icon for the section to make it visible

      Expected result: The not-hidden label should not be dimmed.

      Actual result: Both labels will remain dimmed

      The issue seems to persist until the section has been toggled to visible with the activity on it at least one time, followed by a refresh of the course page. It even persists between different browser sessions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              nmagill Neill Magill
              Peer reviewer:
              Zachary Durber
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jan/15