Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-75091

Forum navigation nodes of forumreport all called the same

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.1
    • None
    • Forum
    • None
    • MOODLE_400_STABLE

    Description

      Forumreports are added to the navigation_node of the forum component. Moodle 4.x fetches the same string 'reports' for all reportnames being placed in the navigation of the forum. The moodle-core only has one report called summary, thus things only start getting confusing, when you add another forumreport plugin.

      mod/forum/lib.php in line 5606

      $forumnode->add(get_string('reports'), $reportlink, navigation_node::TYPE_CONTAINER);
      

      In former versions it used to fetch the 'nodetitle' string from the forumreport:

      $forumnode->add(get_string('nodetitle', "forumreport_{$reportname}"), $reportlink, navigation_node::TYPE_CONTAINER);
      

      This seems like the intended behaviour.

      Attachments

        Activity

          People

            Unassigned Unassigned
            linos André Menrath
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: