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

Activity context menu not updated when topic unhidden

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-79194-401
    • MDL-79194-403
    • MDL-79194-master
    • Hide

      Note: this has to be tested on the 3 branches (4.1, 4.2 and 4.3/master) as the code differs slightly - the most difference being between 4.2/4.3 and 4.1.

      • Create a course C1
      • In C1, create a new section S1
      • In S1, create 3 activities (text and media): A1, A2, A3
      • Hide A1 and A3
      • Hide S1
      • Check the menus next to A1 to A3, you should not see the "Availability >" menu in the contextual menu next to the activity
      • Show S1
      • Check that in the menus from A1 to A3, you can see the "Availability >" menu in the contextual menu next to the activity

      Master / 403 version:

       

      402/401 version:

      Show
      Note : this has to be tested on the 3 branches (4.1, 4.2 and 4.3/master) as the code differs slightly - the most difference being between 4.2/4.3 and 4.1. Create a course C1 In C1, create a new section S1 In S1, create 3 activities (text and media): A1, A2, A3 Hide A1 and A3 Hide S1 Check the menus next to A1 to A3, you should not see the "Availability >" menu in the contextual menu next to the activity Show S1 Check that in the menus from A1 to A3, you can see the "Availability >" menu in the contextual menu next to the activity Master / 403 version:   402/401 version:
    • 3
    • HQ 2023 Sprint I3.3 Moppies

      This is related to but distinct from MDL-77778. Given a course with a topic and two activities in that topic (Activity A and Activity B), do the following:

      1. Hide Activity A within a topic, where the topic is currently visible.
      2. Hide the topic as well. Reload the page (this is important).
      3. Activity A and Activity B are now both hidden.
      4. Verify that the context menu on both activities gives you the option to "Make Available" and not "Show".   
      5. From the course page, make the topic visible. Do not reload the page. Various AJAX calls will make Activity B visible but Activity A is still hidden. Access the context menu on Activity A. It should offer "Show", but instead it displays "Make Available", as if the topic were still hidden. The link action is "stealth" instead of "show".
      6. If you click on "Make Available" in that state, it actually just sets the visibility to show.

      Verified on qa.moodle.net.

        1. cmitem fragment reloads before patch.png
          cmitem fragment reloads before patch.png
          251 kB
        2. image-2023-09-13-11-23-16-178.png
          image-2023-09-13-11-23-16-178.png
          66 kB
        3. image-2023-10-03-08-24-13-880.png
          image-2023-10-03-08-24-13-880.png
          90 kB
        4. image-2023-10-09-12-35-17-019.png
          image-2023-10-09-12-35-17-019.png
          29 kB
        5. MDL-79194-401-1.png
          MDL-79194-401-1.png
          31 kB
        6. MDL-79194-401-2.png
          MDL-79194-401-2.png
          29 kB
        7. mdl-79194-402-1.png
          mdl-79194-402-1.png
          32 kB
        8. mdl-79194-402-2.png
          mdl-79194-402-2.png
          29 kB
        9. MDL-79194-403-1.png
          MDL-79194-403-1.png
          33 kB
        10. MDL-79194-403-2.png
          MDL-79194-403-2.png
          51 kB
        11. MDL-79194-master-1.png
          MDL-79194-master-1.png
          35 kB
        12. MDL-79194-master-2.png
          MDL-79194-master-2.png
          52 kB

            laurent.david@moodle.com Laurent David
            cfulton Charles Fulton
            Ferran Recio Ferran Recio
            Jun Pataleta Jun Pataleta
            Kevin Percy Kevin Percy
            Votes:
            4 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours, 30 minutes
                2d 2h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.