Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3501

Sesskey value not set on lost file link

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 1.9.16
    • None
    • Hide

      Sesskey value needs to be set for download link in /mod/assignment/type/peerreview/assignment.class.php at line 262.

      /mod/assignment/type/peerreview/assignment.class.php line 262

      echo '<a onclick="setTimeout(\'document.getElementById(\\\'continueButton\\\').disabled=false;\',3000);return true;" href="'.$CFG->wwwroot.'/mod/assignment/type/peerreview/'.self::DOWNLOAD_PEERREVIEW_FILE.'/'.self::FILE_PREFIX.($numberOfReviewsCompleted+1).'.'.$this->assignment->fileextension.'?a='.$this->assignment->id.'&id='.$this->cm->id.'&sesskey='.sesskey().'"><img class="icon" src="'.$CFG->pixpath.'/f/'.mimeinfo('icon', 'blah.'.$this->assignment->fileextension).'" alt="'.get_string('lostfile','assignment_peerreview').'" />'.get_string('lostfile','assignment_peerreview').'</a>';

      Show
      Sesskey value needs to be set for download link in /mod/assignment/type/peerreview/assignment.class.php at line 262. /mod/assignment/type/peerreview/assignment.class.php line 262 echo '<a onclick="setTimeout(\'document.getElementById(\\\'continueButton\\\').disabled=false;\',3000);return true;" href="'.$CFG->wwwroot.'/mod/assignment/type/peerreview/'.self::DOWNLOAD_PEERREVIEW_FILE.'/'.self::FILE_PREFIX.($numberOfReviewsCompleted+1).'.'.$this->assignment->fileextension.'?a='.$this->assignment->id.'&id='.$this->cm->id.'&sesskey='.sesskey().'"><img class="icon" src="'.$CFG->pixpath.'/f/'.mimeinfo('icon', 'blah.'.$this->assignment->fileextension).'" alt="'.get_string('lostfile','assignment_peerreview').'" />'.get_string('lostfile','assignment_peerreview').'</a>';
    • MOODLE_19_STABLE

      From email...

      I have a problem with the peer review task. Some students, when making the revisions do not have the link to access the file for review, but yes a link "get back the file" (see figure). When they click this link, the following error: "A required parameter (sesskey) WAS missing" appears.

            salvetore Michael de Raadt
            aperez350087 Angela Perez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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