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

admin_setting_check should not render action link if check does not have action link

XMLWordPrintable

    • MOODLE_405_STABLE

      check classes may not have action links, they are allowed to return null.

      However here the code assumes it always has an action link:

      https://github.com/moodle/moodle/blob/ecfcf00d92df2e874da9d8cb31750403ada7789a/lib/adminlib.php#L11813

      But if a check doesn't, it throws an exception:

      Exception - renderer_base::render(): Argument #1 ($widget) must be of type renderable, null given, called in [dirroot]/lib/adminlib.php on line 11813

            Unassigned Unassigned
            matthewhilton Matthew Hilton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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