Issue Details (XML | Word | Printable)

Key: MDL-8648
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Tim Hunt
Reporter: Manuel de la Torre
Votes: 57
Watchers: 30
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Allow essay questions to be selected by random questions

Created: 24/Feb/07 12:30 PM   Updated: 23/Jul/09 10:11 AM
Return to search
Component/s: Questions, Quiz
Affects Version/s: 1.8
Fix Version/s: 1.9.4, 2.0

File Attachments: 1. Text File random_essay_questions.patch.txt (9 kB)

Environment: Linux Ubuntu, Moodle 1.7.1, PHP 5, MySQL
Issue Links:
Blockers
 
Dependency
 
Duplicate
 
Relates
 

Participants: A. T. Wyatt, Caroline Tam, Constantin Sclifos, Genner Cerna, Manuel de la Torre, Martin Dougiamas, Matt Gibson, Michael Spall, Pierre Pichet, Ray Lawrence, Ryan Wick, Samuli Karevaara, Tim Hill and Tim Hunt
Security Level: None
Resolved date: 28/Nov/08
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
When you try to add Essay questions to a quiz using the Add Random questions feature, they are added to the quiz but if you try to preview them or take an exam the following message appears:

The number of random questions required is more than this category contains!

The essay questions in the category are not the problem because there are more questions than the ones selected.

It will be great if this feature can be fixed, because many more traditional teachers that like to score the exams by them selves are not using the quiz moodle because they cannot have random exams.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
tjhunt committed 6 files to 'Moodle CVS' - 28/Nov/08 03:07 PM
random essay questions: MDL-8648 Allow essay questions to be selected by random question.

In the 1.9 branch this is controlled by a new option under Admin -> Experimental. In Moodle 2.0 dev it is not optional, it just works.

The main change is letting the manual grading report know which random questions might need manual grading. MDL-4004 - this depends on the random question under consideration, which requires a new questiontype method.

I also changed the random question code so that I could remove some global variables.
ADD lang/en_utf8/qtype_random.php   Rev. 1.1    (+0 -0 lines)
MODIFY question/type/essay/questiontype.php   Rev. 1.30    (+1 -5 lines)
MODIFY lib/questionlib.php   Rev. 1.177    (+6 -18 lines)
MODIFY mod/quiz/report/grading/report.php   Rev. 1.50    (+4 -3 lines)
MODIFY question/type/questiontype.php   Rev. 1.108    (+11 -2 lines)
MODIFY question/type/random/questiontype.php   Rev. 1.26    (+64 -6 lines)
tjhunt committed 6 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 28/Nov/08 03:07 PM
random essay questions: MDL-8648 Allow essay questions to be selected by random question.

In the 1.9 branch this is controlled by a new option under Admin -> Experimental. In Moodle 2.0 dev it is not optional, it just works.

The main change is letting the manual grading report know which random questions might need manual grading. MDL-4004 - this depends on the random question under consideration, which requires a new questiontype method.

I also changed the random question code so that I could remove some global variables.
MODIFY question/type/essay/questiontype.php   Rev. 1.20.2.8    (+7 -2 lines)
MODIFY admin/settings/Attic/misc.php   Rev. 1.14.2.4    (+4 -1 lines)
MODIFY question/type/random/questiontype.php   Rev. 1.12.2.7    (+68 -8 lines)
MODIFY question/type/questiontype.php   Rev. 1.74.2.14    (+11 -2 lines)
MODIFY lang/en_utf8/qtype_random.php   Rev. 1.1.2.2    (+4 -0 lines)
MODIFY mod/quiz/report/grading/report.php   Rev. 1.25.2.14    (+4 -3 lines)
martignoni committed 1 file to 'Lang CVS' - 07/Dec/08 11:50 PM
MDL-8648 New lang file added
ADD fr_utf8/qtype_random.php   Rev. 1.1    (+0 -0 lines)
tjhunt committed 1 file to 'Moodle CVS' - 26/Mar/09 10:54 AM
random essay questions: MDL-8648 fix merge problem.
MODIFY lib/questionlib.php   Rev. 1.192    (+6 -2 lines)
Mitsuhiro Yoshida committed 2 files to 'Lang CVS' - 17/Jun/09 12:47 PM
Brushed up translated strings for global search block.
MDL-8648 Translated new strings for random question.
MODIFY ja_utf8/qtype_random.php   Rev. 1.3    (+3 -1 lines)
MODIFY ja_utf8/block_search.php   Rev. 1.4    (+3 -3 lines)