Moodle

When click on the Q# in Item Analysis Table, some required parameters are not passing alone

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: 1.9.3
  • Component/s: Questions, Quiz
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Overview
========

When there are quiz attempts, the 'Item Analysis' table in the 'Results' Tab displays the detailed analysis of attempted questions & solutions. When a question number is clicked, instead of opening an editing question page, an error page gets opened.

Steps to Reproduce
================

1. Login to moodle 1.9.x+ (I was using build 20080708)

2. Login as an Instructor

3. Create a quiz that has multiple quiz attempts

4. Go to 'Results' tab

5. Select sub-tab 'Item Analysis'

6. The item analysis table will get display

7. Go the first column of the table and click any question number

8. A new window should pop-up saying: Need to pass courseid or cmid to this script." followed by a 'Continue' button. (see screenshot)

Issue Links

Activity

Hide
Wen Hao Chuang added a comment -

Hi Tim could you maybe take a quick look at this when you get a chance? Shouldn't be hard to fix it I think, just that when /mod/quiz/report.php is generating the Q# column, somehow the link that it generated (link to /question/question.php?id=xx) does not include courseid or cmid. If you don't have time to fix this please assign this to me. Thanks!

Show
Wen Hao Chuang added a comment - Hi Tim could you maybe take a quick look at this when you get a chance? Shouldn't be hard to fix it I think, just that when /mod/quiz/report.php is generating the Q# column, somehow the link that it generated (link to /question/question.php?id=xx) does not include courseid or cmid. If you don't have time to fix this please assign this to me. Thanks!
Hide
Tim Hunt added a comment -

I won't have time to look at this for about a week, because I am in the middle of moving to Perth (currently staying with my parents in London, I get on the plane tomorrow).

So I am assigning this to you for now. It would be great if you can solve it. If not, feel free to assign it back to me on Monday 11th August.

Show
Tim Hunt added a comment - I won't have time to look at this for about a week, because I am in the middle of moving to Perth (currently staying with my parents in London, I get on the plane tomorrow). So I am assigning this to you for now. It would be great if you can solve it. If not, feel free to assign it back to me on Monday 11th August.
Hide
Tim Hunt added a comment -

Actually, someone just reported a duplicate of this bug (bad), but with a patch to fix the problem attached (good).

So I'll check the fix in.

Show
Tim Hunt added a comment - Actually, someone just reported a duplicate of this bug (bad), but with a patch to fix the problem attached (good). So I'll check the fix in.
Hide
Tim Hunt added a comment -

Note, this issue does not affect Moodle 2.0 dev, where this report has been completely rewritten.

Show
Tim Hunt added a comment - Note, this issue does not affect Moodle 2.0 dev, where this report has been completely rewritten.
Hide
Jerome Mouneyrac added a comment -

tested on 1.9, it works well. Thanks all for your participation.

Show
Jerome Mouneyrac added a comment - tested on 1.9, it works well. Thanks all for your participation.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: