MDL-78642 mod_assign: typecast portfolio button renderer return.
Internally the button return is nullable, which we need to account for in the renderer.
This commit is contained in:
@@ -1443,7 +1443,8 @@ class renderer extends \plugin_renderer_base {
|
||||
];
|
||||
$button->set_callback_options('assign_portfolio_caller', $portfolioparams, 'mod_assign');
|
||||
$button->set_format_by_file($file);
|
||||
return $button->to_html(PORTFOLIO_ADD_ICON_LINK);
|
||||
|
||||
return (string) $button->to_html(PORTFOLIO_ADD_ICON_LINK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user