moodle/question/type/calculatedmulti
Tim Hunt 66de66fe6a MDL-46148 qtype_calculated: fix validation when importing.
In order to do this in a sane way, I cleaned up a lot of old mess,
inclduing:

1. Previously, qtype_calcuated used ->answeres when importing, and
->answer when saving the form. This was crazy, so I fixed it, and
stripped out the code that made the alternative variable name work.

2. Similarly, it could handle ->answer being either an array, such as
you would get form the HTML editor, or a simple string, which is what
you get form the form. I simplified that too.

3. Finally, I made import use a transaction around saving each
question, so we don't get half questions in the database when an error
occurs.
2014-07-09 13:35:09 +01:00
..
backup/moodle2 MDL-38792 Update question/type in-line comments to codechecker standards 2013-04-08 19:59:51 -04:00
db MDL-38792 Update question/type in-line comments to codechecker standards 2013-04-08 19:59:51 -04:00
lang/en MDL-36570 question editing: group answer/choice fields better. 2013-03-28 17:25:45 +00:00
pix MDL-23784 converted question types to use new pix API and locations 2010-08-12 19:01:28 +00:00
tests MDL-43749 normalise quiz database structure. 2014-03-02 10:00:40 +01:00
edit_calculatedmulti_form.php Merge branch 'MDL-46212' of git://github.com/timhunt/moodle 2014-07-08 11:43:09 +12:00
lib.php MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
question.php MDL-40434 calculatedmulti multiple-response questions not randomised 2013-07-02 08:21:42 +01:00
questiontype.php MDL-46148 qtype_calculated: fix validation when importing. 2014-07-09 13:35:09 +01:00
renderer.php MDL-27412 Upgrade the calculatedmulti question type to the new question engine. 2011-05-19 17:14:09 +01:00
styles.css MDL-35343 JavaScript visible in multichoice choice feedback. 2012-09-10 13:06:47 +01:00
version.php MDL-45486 Bump all versions to planned release 2014-05-09 02:12:28 +02:00