Andrew Robert Nicols
73ebb5d7ab
MDL-29818: Improve error message when a grade has no answer
2011-10-19 09:35:32 +01:00
Tim Hunt
f8431a1933
MDL-29528 qtype multichoice and caclulated combined feedback format overwritten during upgrade.
2011-09-26 13:39:11 +01:00
Eloy Lafuente (stronk7)
97e4e3953a
MDL-28684 QE2 upgrade: fix undefined $a regression. Thanks Henning!
2011-08-25 15:54:41 +02:00
Eloy Lafuente (stronk7)
ddec658859
Merge branch 'MDL-28684_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE
2011-08-24 17:12:18 +02:00
Tim Hunt
e9f707d38a
MDL-28684 fix failing unit test - which means fix the acutal code.
...
Sorry for the noise.
2011-08-24 16:02:40 +01:00
Tim Hunt
8c412f122c
MDL-28942 qtype multichoice, multi-response. Avoid computing the wrong random guess score.
...
It is effectively impossible to compute the right random guess score, so we should not compute anything, rather than computing a number that we know is wrong.
This patch also fixes a multianswer unit test error that was shown up by this fix.
2011-08-24 01:53:26 +02:00
Eloy Lafuente (stronk7)
80fc30b7bd
MDL-28684 QE2 upgrade: whitespace fix
2011-08-23 22:53:26 +02:00
Henning Bostelmann
ec5f40b1a9
MDL-28684 QE2 upgrade: recognize empty answer in multichoice questions
2011-08-19 10:33:55 +01:00
Tim Hunt
c5fe3d7490
MDL-28618 question combined feedback: inconsistency in file areas.
...
The (partially|in)?correct feedback fields acutally store their files in a file area with component 'question'. Some code, however, was written as if they were stored in the qtype_whatever area.
2011-08-05 17:38:22 +01:00
Aparup Banerjee
2fa78e85e9
MDL-28169 Installation Added 2.1 upgrade (idiot proof) lines to upgrade scripts.
2011-07-07 10:24:38 +02:00
Tim Hunt
35c9b65274
MDL-24594 Fix some issues with the display of HTML choices.
...
The most significant issue is that the HTML editor alwasy wraps <p> tags round the input, but that is not appropriate for the choices. It is especially not appropriate because we want to display the choices in a <lable> for accessibility and usability reasons. In valid HTML label can only contain inline elemnts. Therefore, I introduced a make_html_inline method, with a minimal implementation. (It could be improved in future.)
Long term, I think the best option would be a new form field type, editorinline, or something like that. That would be a smaller version of TinyMCE that only lets you enter inline elements.
2011-06-17 18:41:15 +01:00
ppichet
2a6c5c52ee
MDL-24594 qtype_multichoice should allow images in the choices.
...
This change was massively re-worked by Tim Hunt to update Pierre Pichet's original patch for Moodle 2.0 to work in Moodle 2.1.
2011-06-17 18:41:13 +01:00
Tim Hunt
e6d7658337
MDL-27865 fix editing of calculated* questions.
2011-06-15 12:20:26 +01:00
Eloy Lafuente (stronk7)
a16e137f21
Merge branch 'MDL-27639_wip' of git://github.com/timhunt/moodle
2011-06-15 01:30:59 +02:00
Tim Hunt
18ab06bac5
MDL-27639 restore of attempt data from 2.0 - first attempt.
...
This is now at the stage where it mostly appears to work, at lease on
one backup file.
2011-06-14 12:11:19 +01:00
David Mudrak
b61cf3ff8a
MDL-22414 Merge branch 'master' into backup-convert
...
Conflicts:
theme/base/style/core.css
2011-06-09 13:04:49 +02:00
Tim Hunt
92111e8d2c
MDL-27747 questions remove all references to the recently deprecated get_grade_options()
2011-06-07 14:00:07 +01:00
Eloy Lafuente (stronk7)
1db15c2718
MDL-20636 changes to core & questions upgrade code
...
Changes include:
- fixing versions and requires to current weekly (2011060313)
- fix essay wrong upgrade step. Review & test!
- fix numerical missing savepoint.
2011-06-06 17:16:11 +01:00
Tim Hunt
4c5743343f
MDL-20636 make qe upgrade tests independent of html2text details.
...
Based on Eloy's change, but refactored to be slightly nicer.
2011-06-06 17:05:54 +01:00
Eloy Lafuente (stronk7)
36e91f1de1
MDL-20636 Whitespace fixes
2011-06-06 16:38:46 +01:00
David Mudrak
a4158f8d93
MDL-27626 Make sure that the <answers> structure is present before converting it
...
This corresponds the logic of question_backup_answers()
2011-06-03 18:54:57 +02:00
David Mudrak
7ffc82df8b
MDL-27626 multichoice question type conversion handler
2011-06-03 18:06:28 +02:00
Tim Hunt
1da821bbde
MDL-27649 support question variants as a first-class concept in the question engine.
2011-05-26 21:23:56 +01:00
Tim Hunt
7ac7977cbe
MDL-27413 qtype_multianswer embedded inline multichoice now work.
2011-05-26 15:03:47 +01:00
Tim Hunt
fa6c862065
MDL-27413 unit tests for some of the new multianswer code.
2011-05-23 20:00:05 +01:00
Tim Hunt
e0736817f0
MDL-20636 fix some more coding style issues in the question code.
2011-05-20 18:50:41 +01:00
Tim Hunt
cdece95ea4
MDL-27412 Upgrade the calculatedmulti question type to the new question engine.
2011-05-19 17:14:09 +01:00
Tim Hunt
afe24f850b
MDL-20636 Rename questiontype.php to questiontypebase.php. Also some conde-checker issues.
2011-05-17 16:46:57 +01:00
Tim Hunt
9c197f4445
MDL-20636 Fix some more codechecker issues.
2011-05-14 22:53:25 +01:00
Tim Hunt
d3bab68c78
MDL-27408 update all question and quiz plugin version.php files.
2011-05-12 23:18:47 +01:00
Tim Hunt
d04626e4cd
MDL-20636 Question engine upgrade unit tests for shortanswer, random and multichoice.
2011-05-11 17:19:12 +01:00
Tim Hunt
0859ff6503
MDL-20636 Re-organise all the old upgrade code, before I start work on it for real.
2011-05-11 15:32:14 +01:00
Tim Hunt
c749527bec
MDL-20636 Finished backup and restore of attempt data. Yay
2011-05-05 21:26:25 +01:00
Tim Hunt
12039f2e7a
MDL-20636 Fix codechecker issues in qtype_multichoice.
2011-04-08 05:07:42 +01:00
Tim Hunt
c7df5006b9
MDL-20636 Add lots of missing public/protected/private.
2011-03-23 16:22:25 +00:00
Tim Hunt
f3ca24e418
MDL-20636 Update quiz and questions backup and restore.
...
This does not include user data yet, and it needs more testing.
2011-03-02 17:42:51 +00:00
Tim Hunt
22cebed503
MDL-20636 Review and fix the format parameter to all calls to format_text.
2011-02-24 20:18:16 +00:00
Tim Hunt
a18fda20c4
MDL-20636 Split question-type specific styles into the separate plugins.
2011-02-24 19:34:08 +00:00
Tim Hunt
ef31a28343
MDL-20636 Split question_definition::init_first_step into start_attempt and apply_attempt_state.
2011-02-24 19:12:42 +00:00
Tim Hunt
2daffca554
MDL-20636 Fix 30 TODOs
2011-02-24 17:47:51 +00:00
Tim Hunt
d649fb0221
MDL-20636 Remove all references to global $QTYPES.
...
Except in the question types that have not yet been converted to the new question engine.
2011-02-24 15:29:07 +00:00
Tim Hunt
5e8a85aa64
MDL-20636 Massively reduce the number of references to quiz in the question code.
...
This mostly involves moving lang strings around, but I don't have time to do an AMOS script now.
2011-02-23 18:53:50 +00:00
Tim Hunt
f7970e3ca7
MDL-20636 Eliminate integer and boolean in PHPdoc comments. should be int and bool.
2011-02-23 16:25:25 +00:00
Tim Hunt
a17b297d60
MDL-20636 Add missing defined('MOODLE_INTERNAL') || die();
2011-02-23 16:00:20 +00:00
Tim Hunt
7764183a4a
MDL-20636 Fix @package names and PHPdoc layout.
2011-02-23 13:38:16 +00:00
Tim Hunt
d3603157bf
MDL-20636 Add @package and GPL boiler-plate to files in /question.
2011-02-22 19:59:12 +00:00
Tim Hunt
0ff4bd0877
MDL-20636 Fix new stdClass -> stdClass(), and trailing whitespace.
2011-02-21 18:10:19 +00:00
Tim Hunt
b04a4319d6
MDL-20636 Remove © from all PHPdoc comments, and tidy them up a bit.
2011-02-21 14:51:02 +00:00
Tim Hunt
f9b0500f7f
MDL-20636 Quiz editing now works, as does the random question type.
...
However, all this needs more testing.
Also, a bit of a purge of training whitespace and global .
2011-02-10 20:50:18 +00:00
Tim Hunt
706d06e29b
MDL-20636 ddwtos and gapselect qtypes now very nearly work.
...
Todo rendering questions with files, and ddwtos javascript.
2011-02-01 23:44:40 +00:00