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

Make progress bar available on the very last page of a lesson.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7
    • 2.9
    • Lesson
    • MOODLE_27_STABLE
    • MOODLE_29_STABLE
    • Hide
      • As a teacher create a lesson with "Progess bar" setting set to "Yes"
      • Add several pages to the lesson. You can add questions pages but note that if the path in your lesson is not linear, the percentages reported by the progress bar will be wrong. This problem is out of scope of this issue and is clearly mentioned in the documentation: https://docs.moodle.org/27/en/Lesson_settings#Progress_bar
      • Attempt the lesson as a student and verify the progress bar is displayed on all pages including the end of lesson page (the one with the congratulations message)
      Show
      As a teacher create a lesson with "Progess bar" setting set to "Yes" Add several pages to the lesson. You can add questions pages but note that if the path in your lesson is not linear, the percentages reported by the progress bar will be wrong. This problem is out of scope of this issue and is clearly mentioned in the documentation: https://docs.moodle.org/27/en/Lesson_settings#Progress_bar Attempt the lesson as a student and verify the progress bar is displayed on all pages including the end of lesson page (the one with the congratulations message)

    Description

      In the course of trying to solve the problem in this discussion: https://moodle.org/mod/forum/discuss.php?d=271441 I found out that the Lesson progress bar never displays a 100% progress on the very last page of a lesson!
      This can be very easily fixed by adding a link to the relevant function. In current moodle 2.7 version, file mod/lesson/view.php, after line 431
      if (!$canmanage) {
      add this line:
      $lessoncontent .= $lessonoutput->progress_bar($lesson);
      Joseph

      Attachments

        Activity

          People

            jmvedrine Jean-Michel Vedrine
            rezeau Joseph Rézeau
            Adrian Greeve Adrian Greeve
            Sam Hemelryk Sam Hemelryk
            Damyon Wiese Damyon Wiese
            Jake Dallimore, Mathew May, Mihail Geshoski
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/May/15