Permalink
Browse files

question editing from quiz: MDL-20709 better return URL.

  • Loading branch information...
1 parent 8d1e5fd commit 8a7b41f2a64bfb24a44c6301795126d356a0fffd @timhunt timhunt committed Nov 19, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 question/type/questiontype.php
@@ -928,7 +928,8 @@ function get_question_edit_link($question, $cmoptions, $options) {
if (!empty($cmoptions->thispageurl)) {
/// The module allow editing in the same window, print an ordinary link.
- return '<a href="' . $CFG->wwwroot . $linkurl . '&amp;returnurl=' . urlencode($cmoptions->thispageurl) .
+ return '<a href="' . $CFG->wwwroot . $linkurl . '&amp;returnurl=' .
+ urlencode($cmoptions->thispageurl . '#q' . $question->id) .
'" title="' . $stredit . '">' . $linktext . '</a>';
} else {
/// We have to edit in a pop-up.

0 comments on commit 8a7b41f

Please sign in to comment.