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

Wrong string use in lesson view "link to activity"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.1
    • 2.0
    • Lesson
    • MOODLE_20_STABLE
    • MOODLE_21_STABLE
    • MDL-27922_HEAD
    • Hide

      Bug fix:
      in file lesson.view, around line 1774, public function link_for_activitylink()
      replace:
      return html_writer::link(new moodle_url('/mod/'.$modname.'/view.php', array('id'=>$this->properties->activitylink)),
      get_string('returnto', 'lesson', get_string('activitylinkname', 'lesson', $instancename)),
      array('class'=>'centerpadded lessonbutton standardbutton'));

      with:

      return html_writer::link(new moodle_url('/mod/'.$modname.'/view.php', array('id'=>$this->properties->activitylink)),
      get_string('activitylinkname', 'lesson', $instancename),
      array('class'=>'centerpadded lessonbutton standardbutton'));

      Show
      Bug fix: in file lesson.view, around line 1774, public function link_for_activitylink() replace: return html_writer::link(new moodle_url('/mod/'.$modname.'/view.php', array('id'=>$this->properties->activitylink)), get_string('returnto', 'lesson', get_string('activitylinkname', 'lesson', $instancename)), array('class'=>'centerpadded lessonbutton standardbutton')); with: return html_writer::link(new moodle_url('/mod/'.$modname.'/view.php', array('id'=>$this->properties->activitylink)), get_string('activitylinkname', 'lesson', $instancename), array('class'=>'centerpadded lessonbutton standardbutton'));
    • Easy

      Wrong string use in lesson view "link to activity".
      At the end of a lesson, the link to activity displays:
      Return to Go to Activity link
      should be simply:
      Go to Activity link

      Ref. http://moodle.org/mod/forum/discuss.php?d=172173#p770686

            rwijaya Rossiani Wijaya
            rezeau Joseph Rézeau
            Rajesh Taneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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