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

Assign module does not show course title in main header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.5.2
    • Assignment
    • MOODLE_25_STABLE

      While most modules show the title of the course in the main header, the assignment module is rendering the assignment name in the main header.

      FIX:

      /mod/assign/view.php

      require_login($course, true, $cm);
      $PAGE->set_url($url);
      ++$PAGE->set_heading($PAGE->course->fullname);
      

      /mod/assign/renderer.php

          public function render_assign_header(assign_header $header) {
              $o = '';
       
              if ($header->subpage) {
                  $this->page->navbar->add($header->subpage);
              }
       
              $this->page->set_title(get_string('pluginname', 'assign'));
              --$this->page->set_heading($header->assign->name);
      

        1. capture_001_05102013_183726.jpg
          28 kB
          Renaat Debleu
        2. capture_003_05102013_183849.jpg
          31 kB
          Renaat Debleu

            Unassigned Unassigned
            rdebleu Renaat Debleu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.