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

Report builder filtering doesn't work when report duplicated on page

XMLWordPrintable

    • 3
    • WP Sprint 2025-I1.3 (Clones)

      This wouldn't typically happen in LMS, but it causes a problem for plugins when the same report is rendered to the page multiple times. In this case, for all duplicate reports (after the first) their filtering is broken

      This currently affects Workplace open-source block: https://moodle.org/plugins/block_rbreport where multiple page blocks refer to the same report, and also affects the chart visualisation project where the page will show a report, and allow for it to be opened in a full screen modal (therefore duplicating the report in the page DOM):

      The problem is that the filters loader only considers the report ID, which as we've determined is not guaranteed to be unique on the page

        1. MDL-85001.png
          203 kB
          Ron Carl Alfon Yu
        2. Screenshot from 2025-03-25 10-53-27.png
          20 kB
          Paul Holden

            pholden Paul Holden
            pholden Paul Holden
            Carlos Castillo Carlos Castillo
            David Carrillo David Carrillo
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 45 minutes
                5h 45m

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