MDL-83537 check: confirm presence of instance action link.

This commit is contained in:
Paul Holden
2025-03-13 17:52:42 +00:00
parent ae31be1e34
commit c4fc0978b1
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -11800,7 +11800,9 @@ class admin_setting_check extends admin_setting {
$output = $OUTPUT->notification($loadingicon . $loadingstr, \core\output\notification::NOTIFY_INFO, false);
// Add the action link.
$output .= $OUTPUT->render($this->check->get_action_link());
if ($actionlink = $this->check->get_action_link()) {
$output .= $OUTPUT->render($actionlink);
}
// Wrap in a div with a reference. The JS getAndRender will replace this with the response from the webservice.
$statusdiv = \html_writer::div($output, '', ['data-check-reference' => $domref]);