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

Highlight current activity in the course index when navigating from an activity page

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77456-master
    • Hide
      1. Create a course in which you enrol a student (Student 1)
      2. Add two Pages activities (Page 1 and Page 2)
      3. In Page 2, set the Restriction "Date" displayed to students with a date in the future (so students will see it displayed in the course index but won't be able to access the activity).
      4. Login as a student.
      5. Go to Course 1
      6. View Page 1
      7. From this page, click in the course index (left hand corner) onto the Page 2 link (the restricted page)
      8. Check "Page 2" is highlighted in the course index.
      Show
      Create a course in which you enrol a student (Student 1) Add two Pages activities (Page 1 and Page 2) In Page 2, set the Restriction "Date" displayed to students with a date in the future (so students will see it displayed in the course index but won't be able to access the activity). Login as a student. Go to Course 1 View Page 1 From this page, click in the course index (left hand corner) onto the Page 2 link (the restricted page) Check "Page 2" is highlighted in the course index.
    • 2
    • HQ 2023 Sprint i1.3 Moppies

      When an element from the course index is clicked, it's expected to be highlighted:

      However, when you are on an activity page and click an element in the course index that doesn't have a page (like an activity with restrictions or a label), the link is working as expected but the element is not highlighted.

       

      Steps to reproduce it:

      1. Create a course
      2. Add an assignment "Assignment 1".
      3. Add another assignment, "Restricted assignment", with a Restriction "Date" displayed to students with a date in the future (so students will see it displayed in the course index but won't be able to access the activity).
      4. Login as a student.
      5. Access to "Assignment 1".
      6. From the assignment page, click on "Restricted assignment" in the Course index.

      Expected behaviour:

      • The "Restricted assignment" is highlighted.

      Current behaviour:

      • The "Restricted assignment" is not highlighted.

       

      Once MDL-77291 will be integrated in master, it can also be reproduced from 4.2 onwards with labels.

            laurent.david@moodle.com Laurent David
            sarjona Sara Arjona (@sarjona)
            Ferran Recio Ferran Recio
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 37 minutes
                2h 37m

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