Commit graph

292 commits

Author SHA1 Message Date
tjhunt
d20f688bbb qtypes: MDL-18559 questions showing penalty information when they shouldn't.
We had a !== when it should have been !=, and our constants were defined as strings not ints. This problem has been there since forever, but no one had noticed before. Thanks to Alan Trick for finally spotting it!
2009-03-16 01:53:05 +00:00
Francois Marier
5cb48efd23 Fix CVS-git drift (old .sql files) 2009-02-01 23:45:11 +00:00
tjhunt
a1f5200104 match qtype: MDL-17326 backup and restore problems
* The shuffleanswers options was not backed up or restored.

* Responses were not properly recoded on restore.
2008-12-12 06:45:19 +00:00
tjhunt
d8301555cd matching qtype: MDL-17496 With filterall and multilang, the contents of the dropdowns was not being properly filtered
This was caused becuse the solution to MDL-9005 was not quite right.
2008-12-12 04:39:18 +00:00
tjhunt
4914c939c6 numerical and shortanswer question types: problems with compare_responses and test_response.
MDL-15315 The previous fix for this issue with wildcard answers in the item analysis report caused the following two regressions. This patch fixes it properly.

MDL-17247 This is basiclly pointing out the weridness in the previous fix and gave some useful clues as to a proper solution. Thanks Oleg.

MDL-17610 This was a report of a problem with each attempt builds on last, with a shortanswer question, where the sutdent's response contains a '.

Also, lots of unit tests to try to ensure the new code is right.
2008-12-12 03:48:26 +00:00
tjhunt
3d0f39ea96 truefalse qtype: MDL-12027 remove spurious alt attribute from truefalse qtype radio buttons. 2008-12-10 00:54:38 +00:00
pichetp
a2816b7447 MDL-17524 Merging from HEAD
Deleting a calculated question delete datasetdefinitions shared by other question
2008-12-04 16:44:29 +00:00
tjhunt
8b28857e69 fix notices: MDL-15974 Some systems that were upgraded have nullable columns, leading to notices
A new install has NOT NULL DEFAULT 0.
2008-11-27 05:07:36 +00:00
pichetp
c589f054b4 MDL-17104 better delete of unused sub questions, merge from HEAD 2008-11-15 10:17:51 +00:00
tjhunt
c26c206276 MDL-16720 The edit icon in the quiz preview screen pops up the edit form in a window that is too small 2008-09-28 08:59:43 +00:00
pichetp
48f1234896 Merge from 1.9 as HEAD is different
MDL-16427 implement the '*' convention as for other questiontypes
MDL-15358 negative data and MDL-16427 handling 0
MDL-15233 tolerance
2008-09-21 03:15:40 +00:00
pichetp
3744e9ef24 Merge from 1.9 as HEAD is different
MDL-16427 implement the '*' convention as for other questiontypes
MDL-15358 negative data and MDL-16427 handling 0
2008-09-20 14:42:19 +00:00
pichetp
0455e362ae MDL-15358 negative data between () and MDL-14979 - Remove the obsolete quizfile.php
merge from 1.9 as this file is no more in HEAD
2008-09-20 14:30:05 +00:00
pichetp
38d739257d MDL-16427 changing $answer=='*' to $answer ==='*' 2008-09-18 14:48:11 +00:00
tjhunt
9300321849 MDL-8475 - Better handling of blank answer - further changes to make it even more robust. Also, make the same changes to the shortanswer question type that were already made to the numerical question type. 2008-08-28 01:46:26 +00:00
tjhunt
240363ac49 MDL-15654 Incorrect escaping of HTML in the history table on the review quiz attempt page. 2008-08-20 09:46:10 +00:00
pichetp
a478b383cd better filtering of null answers MDL-8475 merged from HEAD 2008-08-15 11:26:58 +00:00
pichetp
a53b72f516 better validation of null answers MDL-8475 merged from HEAD 2008-08-14 11:54:53 +00:00
tjhunt
1170f42f3a MDL-15315 - Error in Item analysis report for short aswer questions that use wildcards 2008-06-20 17:22:57 +00:00
pichetp
3af0788f9c MDL-14625 more tolerant to missing subquestions merged from HEAD 2008-06-19 01:50:28 +00:00
tjhunt
7bab64e437 MDL-5482 - Backup and restore problems for match, random and truefalse question types.
All the credit goes to Paulo Matos who carefully worked out and tested this fix, and updated the patch several times over more than a year while I very slowly got around to reviewing it and checking it in.
2008-05-07 12:31:56 +00:00
tjhunt
5c3a8f2654 MDL-14352 - General feedback for descriptions not showing up on the review page, as it should. 2008-04-22 16:17:00 +00:00
pichetp
8d7c19f5d1 MDL-12503 Loguniform and MDL-12421 rounding merging from head and 1.9 STABLE 2008-03-10 20:28:18 +00:00
pichetp
152f2f68ce MDL-13720 removing $files parameter from 1.9 version 2008-02-28 19:40:24 +00:00
tjhunt
7f761c27eb MDL-13189 - replace the $QTYPE_MENU global with a function call, so that we can set up the language strings later, after $COURSE is initialised. This ensures that the quesion names appear in the right language. 2008-02-28 12:53:05 +00:00
pichetp
74a2040332 Mergging from head MDL-12255 Adding questiontext decoding and subquestions validation 2008-02-19 23:39:45 +00:00
pichetp
9a5d3d9d3d Merging MDL-12063 from HEAD qtype_questions where left orphans when questions when deleted or
qtype change
2008-02-19 18:01:11 +00:00
tjhunt
cda98581a5 Fix dangerous comment. (MDL-13536) 2008-02-19 17:14:13 +00:00
tjhunt
df6447ef65 MDL-13110 - Manually grading random questions does not work. Fix thanks to Ken Burres. 2008-01-30 18:18:38 +00:00
tjhunt
51f90f8839 MDL-12785 - Partially correct tick icon not displayed for MULTICHOICE, single answer questions. Fix thanks to Joseph Rzeau. 2008-01-08 18:28:51 +00:00
tjhunt
bbe0467bff Fix Javascript error from essay questions on the review page. 2007-12-12 18:10:47 +00:00
tjhunt
3b37251a8a MDL-12282 - Numerical question type - the units are displayed on the editing form with a stupidly large number of decimal places. 2007-11-20 16:56:53 +00:00
skodak
d6358f2d18 MFC: MDL-12079 fixed use of clean_param() 2007-11-10 14:51:34 +00:00
fmarier
d4833f2103 Add missing fields when upgrading/installing on Postgres
mod/exercise, mod/scorm and question/type/rqp
MDL-12023
2007-11-09 01:22:25 +00:00
pichetp
5e0da4b5ee MDL-11867 setting real null when response is null in calculated question merged from
head
2007-11-01 00:36:04 +00:00
pichetp
439e93b27f solving MDL-7496 for calculated merged from head 2007-10-31 02:44:34 +00:00
pichetp
5234b78232 solving MDL-7496 for calculated merge from head 2007-10-31 02:34:33 +00:00
tjhunt
dc99997eac MDL-11708 - Zero answers are not allowed in Matching questions - sometimes I hate PHP. 2007-10-22 16:56:24 +00:00
tjhunt
32a6bb301e MDL-11824 - Literal asterisk (\*) in shortanswer question not handled correctly by get_correct_responses + Unit tests. 2007-10-22 15:36:50 +00:00
tjhunt
bc93860e9f MDL-11703 - escaped *'s in shortanswer answers were not matching properly. 2007-10-10 15:26:22 +00:00
pichetp
26b131922b checking that there remain $oldwrappedids before deleting them lines 87-..
add         if(is_array($oldwrappedids) && count($oldwrappedids)){
2007-10-06 21:06:21 +00:00
pichetp
f67882c305 missing global $CFG ; line 577
function save_dataset_items($question, $fromform){
global $CFG;
2007-10-06 19:10:28 +00:00
tjhunt
048373691e MDL-10843 - Backporting lang string search changes from HEAD, so question type plugins can have their help file inside their lang folder. 2007-10-03 14:01:08 +00:00
tjhunt
4e557706d3 MDL-5327 - When making up a default question name from the question text, strip any HTML tags. 2007-09-27 06:53:59 +00:00
tjhunt
c6b4a16884 MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash. 2007-09-21 18:28:31 +00:00
tjhunt
f5446711d2 MDL-9952 - Cant escape # by using \ in a Cloze question. 2007-09-21 16:17:53 +00:00
tjhunt
aac5f17176 XHTML Strict in question state history table. 2007-09-20 15:09:45 +00:00
tjhunt
dc1a8255ba MDL-11317 - Slashes displayed in incorrect responses for short answer questions. Fix by adding stripslashes in the appropriate place. 2007-09-18 12:15:10 +00:00
tjhunt
edd33b96b3 MDL-11310 - Multichoice edititing form should have space for 5 answers by default 2007-09-17 14:39:37 +00:00
tjhunt
9bee6187e4 MDL-11271 - The closing bracket "}" can't be used in cloze question type. Now, you can excape a closing } with a backslash. Do feedback, as well as answer. 2007-09-14 09:42:40 +00:00