moodle/question/type/calculatedsimple
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-27411 qtype_calculatedsimple Fix lots of coding style issues. 2011-05-17 16:01:51 +01:00
db MDL-32569 drop all migrated question simpletests 2012-04-21 16:43:34 +02:00
lang/en MDL-36534 question editing: clean up lang strings. 2013-01-14 14:52:49 +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_calculatedsimple_form.php MDL-46212 questions: add {} whenver vars are put into "" strings 2014-07-03 14:02:39 +01:00
lib.php MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
question.php MDL-27411 upgrade the calculatedsimple qtype to the new question engine. 2011-05-19 12:20:49 +01:00
questiontype.php MDL-46148 qtype_calculated: fix validation when importing. 2014-07-09 13:35:09 +01:00
renderer.php MDL-27411 upgrade the calculatedsimple qtype to the new question engine. 2011-05-19 12:20:49 +01:00
styles.css MDL-36570 question editing: group answer/choice fields better. 2013-03-28 17:25:45 +00:00
version.php MDL-45486 Bump all versions to planned release 2014-05-09 02:12:28 +02:00