From 39f5b5c1ec9f6b1bdae41ff138e9e49578ae70b7 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 28 Jul 2010 13:54:32 +0000 Subject: [PATCH] MDL-23463 found the redirection problem --- mod/lesson/continue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/lesson/continue.php b/mod/lesson/continue.php index 294c235bc6f..4be3e23e63e 100644 --- a/mod/lesson/continue.php +++ b/mod/lesson/continue.php @@ -175,7 +175,7 @@ if (isset($USER->modattempts[$lesson->id])) { $content .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=>$cm->id)); $content .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'pageid', 'value'=>LESSON_EOL)); $content .= html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'submit', 'value'=>get_string('savechanges', 'lesson'))); - echo html_writer::tag('form', "
$content
", array('method'=>'get', 'target'=>$url)); + echo html_writer::tag('form', "
$content
", array('method'=>'post', 'action'=>$url)); } // Review button back @@ -184,7 +184,7 @@ if ($lesson->review && !$result->correctanswer && !$result->noanswer && !$result $content = html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=>$cm->id)); $content .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'pageid', 'value'=>$page->id)); $content .= html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'submit', 'value'=>get_string('reviewquestionback', 'lesson'))); - echo html_writer::tag('form', "
$content
", array('method'=>'get', 'target'=>$url)); + echo html_writer::tag('form', "
$content
", array('method'=>'post', 'action'=>$url)); } $url = new moodle_url('/mod/lesson/view.php', array('id'=>$cm->id, 'pageid'=>$result->newpageid));