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

report_helper::print_report_selector function does not take non action nodes into account

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • Hide
      1. Edit report/log/lib.php function report_log_extend_navigation_course() function.
      2. Within this function change the $url so that $url = null;
      3. This mimics either there not being an action or if a container folder without an action is added to the course reports node.
      4. Go to a course
      5. Open the Activity Report
      6. No error should be reported.
      Show
      Edit report/ log/lib.php function report_log_extend_navigation_course() function. Within this function change the $url so that $url = null; This mimics either there not being an action or if a container folder without an action is added to the course reports node. Go to a course Open the Activity Report No error should be reported.

      If you install a plugin that adds a navigation node with no action to the coursereports node. The report_helper::print_report_selector function will try to call the out() function on it anyway.

        1. image-2022-06-08-14-00-07-349.png
          16 kB
          Shamim Rezaie
        2. MDL-73702_Test Passed.PNG
          51 kB
          Gladys Basiana
        3. Screenshot_20220127_100305.png
          14 kB
          Frederik Milling Pytlick

            mhughes2k Michael Hughes
            frederikmillingpytlick Frederik Milling Pytlick
            Michael Hughes Michael Hughes
            Shamim Rezaie Shamim Rezaie
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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