Merge branch 'MDL-73702-fix_report_helper' of https://github.com/praxisdigital/moodle into MOODLE_311_STABLE

This commit is contained in:
Shamim Rezaie
2022-06-10 13:17:00 +02:00
committed by Sara Arjona
+6 -4
View File
@@ -51,10 +51,12 @@ class report_helper {
foreach ($children as $key => $node) {
$name = $node->text;
$url = $node->action()->out(false);
$menu[$url] = $name;
if ($name === $pluginname) {
$activeurl = $url;
if ($node->has_action()) {
$url = $node->action()->out(false);
$menu[$url] = $name;
if ($name === $pluginname) {
$activeurl = $url;
}
}
}
}