Hi,
I am trying to stop the assignment marking window from closing when a teacher clicks save.
I think I have located the piece of code that closes it in assignment/lib.php around line 513:
if ($submission = $this->process_feedback()) {
//IE needs proper header with encoding
print_header(get_string('feedback', 'assignment').':'.format_string($this->assignment->name));
print_heading(get_string('changessaved'));
print $this->update_main_listing($submission);
}
close_window();
If I simply remove the close_window() function it just directs to a page and stays there, so I attempted a redirect instead. This is as follows:
if ($submission = $this->process_feedback()) {
//IE needs proper header with encoding
print_header(get_string('feedback', 'assignment').':'.format_string($this->assignment->name));
print_heading(get_string('changessaved'));
print $this->update_main_listing($submission);
}
redirect('submissions.php?id='.$this->cm->id.' userid='.$submission->userid.'&mode=single&offset=');
This is kicking out an error message because the offset variable is not defined. Can anyone help me with this?
Thanks,
Mark
Removing the close window function from teacher marking
by Interactive Learning -
Number of replies: 0