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

Lesson option "Link to an activity" does not show link at end of lesson

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Lesson
    • Labels:
      None
    • Workaround:
      Hide

      mod_lesson_view.php.diff

      diff --git a/mod/lesson/view.php b/mod/lesson/view.php
      old mode 100644
      new mode 100755
      index 1e39e89..897ba0b
      --- a/mod/lesson/view.php
      +++ b/mod/lesson/view.php
      @@ -507,7 +507,7 @@ if ($pageid != LESSON_EOL) {
       
           // after all the grade processing, check to see if "Show Grades" is off for
           // if yes, redirect to the course page
      -    if (!$course->showgrades) {
      +    if (!$course->showgrades && !isset($lesson->activitylink)) {
               redirect(new moodle_url('/course/view.php', array('id'=>$course->id)));
           }
      

      Show
      mod_lesson_view.php.diff diff --git a/mod/lesson/view.php b/mod/lesson/view.php old mode 100644 new mode 100755 index 1e39e89..897ba0b --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -507,7 +507,7 @@ if ($pageid != LESSON_EOL) {   // after all the grade processing, check to see if "Show Grades" is off for // if yes, redirect to the course page - if (!$course->showgrades) { + if (!$course->showgrades && !isset($lesson->activitylink)) { redirect(new moodle_url('/course/view.php', array('id'=>$course->id))); }
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      Link to specified activity is not shown unless $course->showgrades is true.

      If $course->showgrades is set to false, the finished lesson redirects to the course page instead of showing the link to the linked activity.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              super3d Claus A. Us.
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: