Moodle

At quiz module, the continue button don't link to correct URL

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.7
  • Fix Version/s: None
  • Component/s: Quiz
  • Labels:
    None
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_17_STABLE

Description

At quiz module, the continue button don't link to correct URL:
It links to www.server.net/course/view.php when the correct are www.server.net/user/view.php

Activity

Hide
Tim Hunt added a comment -

Which continue button? The quiz prints lots of continue links in different places. Please give complete steps to reproduce.

Show
Tim Hunt added a comment - Which continue button? The quiz prints lots of continue links in different places. Please give complete steps to reproduce.
Hide
Raül Fernández added a comment -

Hi, I find the bug (maybe)...
When student has finished all the attempts, the continue button don't works.

The URL has /mod/quiz/view.php?q=13
In quiz/view.php at line 148 we have:

<h2 class="main">No es permeten més intents</h2><div class="continuebutton"><div class="singlebutton"><form action="/course/view.php?id=2" method="post" target="_top"><input type="submit" value="Continua" /></form></div></div>

I think that in /course/view.php needs real url...

Raül

Show
Raül Fernández added a comment - Hi, I find the bug (maybe)... When student has finished all the attempts, the continue button don't works. The URL has /mod/quiz/view.php?q=13 In quiz/view.php at line 148 we have: <h2 class="main">No es permeten més intents</h2><div class="continuebutton"><div class="singlebutton"><form action="/course/view.php?id=2" method="post" target="_top"><input type="submit" value="Continua" /></form></div></div> I think that in /course/view.php needs real url... Raül
Hide
Raül Fernández added a comment -

Sorry, I read the "real" quiz/view.php (not with "see source of firefox ) And I don't found the problem, perhaps in line 385 ??

Thanks

Raül

Show
Raül Fernández added a comment - Sorry, I read the "real" quiz/view.php (not with "see source of firefox ) And I don't found the problem, perhaps in line 385 ?? Thanks Raül
Hide
Flotter Totte added a comment -

Hello!

In /mod/view.php change

webroot

to

wwwroot.

The corresponding line should later look like this:

print_continue($CFG->wwwroot . '/course/view.php?id=' . $course->id);

Best Regards,
Thorsten.

Show
Flotter Totte added a comment - Hello! In /mod/view.php change webroot to wwwroot. The corresponding line should later look like this: print_continue($CFG->wwwroot . '/course/view.php?id=' . $course->id); Best Regards, Thorsten.
Hide
Tim Hunt added a comment -

I'm looking at the latest version from the MOODLE_17_STABLE branch (Moodle 1.7.1+) and the problem has already been fixed there.

Show
Tim Hunt added a comment - I'm looking at the latest version from the MOODLE_17_STABLE branch (Moodle 1.7.1+) and the problem has already been fixed there.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: