Classes are not displayed in the Instructor popup in Schedules

Created on 22 April 2025, 26 days ago

Issue summary:
When clicking on an instructor’s name in the schedule, the popup appears with the instructor’s name, but no class data is displayed. This is due to a mismatch between the data variable used in the JS logic and the template.

Steps to reproduce:

  • Navigate to a page with the GroupEx schedule.
  • Click on an instructor's name (e.g., "Kelley Richardson").
  • Observe the popup modal.

Actual result:
Only the instructor’s name is shown. The list of scheduled classes is missing.
Expected result:
The instructor’s name and the list of classes (with time, title, location) should be displayed.

Root cause:
In the JS code, class data was being assigned to instructorPopup_schedule instead of instructorPopup.schedule.
However, the template (Twig) uses instructorPopup.schedule to loop over classes. Because of this mismatch, the class list was not rendered.

🛠 Fix:
Updated the JS to assign the filtered schedule directly to instructorPopup.schedule instead of instructorPopup_schedule, so that the template renders properly without requiring changes to the template itself.

🐛 Bug report
Status

Active

Version

2.7

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024