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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.9
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      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)
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:

      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

            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15