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

Show/Hide Section gives misleading results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.13, 2.1.1
    • Fix Version/s: 2.3
    • Component/s: Course, JavaScript
    • Labels:
    • Workaround:
      Hide

      Refresh the page, which defeats the object of AJAX

      Show
      Refresh the page, which defeats the object of AJAX
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE

      Description

      Unhiding a section which contains hidden resources/activities makes all of the content appear unhidden.

      This is due to the fact that the AJAX code uses CSS styles to determine what was previously shown/hidden.

      To recreate:

      1. Hide some resources
      2. Hide the section
      3. Refresh the page (or do something which causes the page to be refreshed)
      4. Unhide the topic -> all resources appear unhidden
      5. Refresh the page -> all hidden resources appear hidden again

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poltawski Dan Poltawski
                Reporter:
                amanda.doughty Amanda Doughty
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

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