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

Checking tagarea enabled state can throw exception in custom reports list

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-81776-404
    • Hide
      1. Log in as admin
      2. Go to Reports in the user menu
      3. Create a new custom report:
        1. Use "Users" datasource
        2. Add tag "tag1"
        3. Save changes
      4. Press "Close" button
      5. Confirm that "tag1" is shown in the report Tags column
      6. Open Filters
      7. Confirm that Tags filter is present
      8. Go to Site administration > Advanced features
      9. Uncheck "Enable tags functionality" and save changes
      10. Go to Reports in the user menu
      11. Confirm neither Tags column or filter are present
      12. Go to Site administration > Advanced features
      13. Check "Enable tags functionality" and save changes
      14. Go to Site administration > Appearance > Manage tags
      15. Disable "Custom reports" tag area
      16. Go to Reports in the user menu
      17. Confirm neither Tags column or filter are present
      18. Manually delete the tag area from DB (simulate reported corruption) - in your DB editor:

        DELETE FROM moodle.m_tag_area WHERE component = 'core_reportbuilder' AND itemtype = 'reportbuilder_report'
        

      19. Go to Reports in the user menu
      20. Confirm no error is shown on screen
      21. Confirm neither Tags column or filter are present
      Show
      Log in as admin Go to Reports in the user menu Create a new custom report: Use "Users" datasource Add tag "tag1" Save changes Press "Close" button Confirm that "tag1" is shown in the report Tags column Open Filters Confirm that Tags filter is present Go to Site administration > Advanced features Uncheck "Enable tags functionality" and save changes Go to Reports in the user menu Confirm neither Tags column or filter are present Go to Site administration > Advanced features Check "Enable tags functionality" and save changes Go to Site administration > Appearance > Manage tags Disable "Custom reports" tag area Go to Reports in the user menu Confirm neither Tags column or filter are present Manually delete the tag area from DB (simulate reported corruption) - in your DB editor: DELETE FROM moodle.m_tag_area WHERE component = 'core_reportbuilder' AND itemtype = 'reportbuilder_report' Go to Reports in the user menu Confirm no error is shown on screen Confirm neither Tags column or filter are present

      When accessing the Site admin > Reports > Custom reports tool, an error is thrown:
       

      Exception - core_reportbuilder\local\report\column::set_is_available(): Argument #1 ($available) must be of type bool, null given, called in [dirroot]/reportbuilder/classes/local/systemreports/reports_list.php on line 184

      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:

      • line 741 of /reportbuilder/classes/local/report/column.php: TypeError thrown
      • line 184 of /reportbuilder/classes/local/systemreports/reports_list.php: call to core_reportbuilder\local\report\column->set_is_available()
      • line 88 of /reportbuilder/classes/local/systemreports/reports_list.php: call to core_reportbuilder\local\systemreports\reports_list->add_columns()
      • line 106 of /reportbuilder/classes/local/report/base.php: call to core_reportbuilder\local\systemreports\reports_list->initialise()
      • line 70 of /reportbuilder/classes/system_report.php: call to core_reportbuilder\local\report\base->__construct()
      • line 68 of /reportbuilder/classes/manager.php: call to core_reportbuilder\system_report->__construct()
      • line 56 of /reportbuilder/classes/system_report_factory.php: call to core_reportbuilder\manager::get_report_from_persistent()
      • line 50 of /reportbuilder/index.php: call to core_reportbuilder\system_report_factory::create()

       

            davidcarrillo David Carrillo
            jwelshoff Joost Elshoff
            Carlos Castillo Carlos Castillo
            Paul Holden Paul Holden
            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, 5 minutes
                2h 5m

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