MDL-73983 reportbuilder: Don't add empty report action links
This commit is contained in:
@@ -224,7 +224,10 @@ class system_report_table extends base_report_table {
|
||||
$menu = new action_menu();
|
||||
$menu->set_menu_trigger($OUTPUT->pix_icon('a/setting', get_string('actions', 'core_reportbuilder')));
|
||||
foreach ($this->report->get_actions() as $action) {
|
||||
$menu->add($action->get_action_link($row));
|
||||
$actionlink = $action->get_action_link($row);
|
||||
if ($actionlink) {
|
||||
$menu->add($actionlink);
|
||||
}
|
||||
}
|
||||
return $OUTPUT->render($menu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user