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

      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

            pholden Paul Holden
            matthewhilton Matthew Hilton
            Daniel Ziegenberg Daniel Ziegenberg
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 22 minutes
                22m

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