Commit Graph

46 Commits

Author SHA1 Message Date
Tim Hunt 85a712680b question restore: MDL-22720 silly typo in question restore.
Thanks to Vadim Dvorovenko for finding and fixing this.
2010-06-10 14:58:39 +00:00
Petr Skoda aeb15530b8 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 11:57:52 +00:00
pichetp 95cf694abe MDL-20296 closing } added line 713 in question_restore_numerical_options 2009-10-13 20:05:06 +00:00
pichetp 03990aa6e7 MDL-20296 Units handling for numerical and calculatedquestions 2009-10-07 21:03:58 +00:00
skodak bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
tjhunt d61f7b7641 backup/restore: MDL-16614 more reliable test for when we are restoring a backup that was made of the same site that we are restoring to.
* Use this to fix a question restore bug.
* Replace older code that does something similar with the new test.
* Refactor initialisation of $CFG->siteidentifier into a function. There were about 4 copies of this code ;-)
2009-01-20 03:16:30 +00:00
tjhunt 807a1a8427 question bank database: MDL-17608 Drop originalquestion field from the question_states table - it was never used for anything. 2009-01-06 05:20:21 +00:00
nicolasconnault f34488b2e6 MDL-15102 Upgrade to DMLLIB 2.0. Needs further testing and bug-fixing. 2008-06-06 14:43:15 +00:00
skodak cd655b33f9 MDL-15095 towards restore lib dml conversion 2008-06-03 23:35:50 +00:00
skodak 9db7dab2ca MDL-15095 towards restore lib dml conversion 2008-06-03 22:36:54 +00:00
tjhunt 9ade28e57e MDL-14750 - Multianswer questions get broken by backup and restore becuase question->parent is not recoded properly in the database. This commit also fixes a regression introduced by the fix for MDL-5482. 2008-05-09 15:10:39 +00:00
tjhunt 3ff8a1877a 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:32:03 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
jamiesensei 5111051663 MDL-13005 When trying to restore a course when you have more then one quiz and you choose only one quiz, the restore fails when trying to create categories and questions. Fixed this by ignoring module context level q categories in backup when the course module has not already been restored. merged from MOODLE_19_STABLE 2008-02-05 11:27:02 +00:00
tjhunt 27cabbe626 MDL-12575 - Backup and restore problems with the new question bank. Merged from MOODLE_19_STABLE. 2007-12-13 18:48:30 +00:00
tjhunt 1061756d8e Minor whitespace fixup. 2007-11-07 15:41:20 +00:00
tjhunt c033e37f16 Notices on restore. 2007-09-20 15:57:02 +00:00
jamiesensei 271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
tjhunt 6e9debfbf1 Removing remaining references to RQP in core code. I had not realised there were so many. By the way, I am committing this from a pub in York. Pub's with wireless, whatever next? 2007-05-24 17:25:37 +00:00
tjhunt 06d20c2429 Clean up trailing whitespace. 2007-04-24 23:25:33 +00:00
tjhunt c85607f0be MDL-9432 - When restoring questions, links are not recoded. Merged from OU moodle. 2007-04-18 15:56:21 +00:00
tjhunt 4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
toyomoyo a917db623e adding backward compatitiblity for question restores 2007-03-02 08:04:05 +00:00
tjhunt a24a414f24 When restoring numerical questions, don't create duplicate unit definitions. Merged from MOODLE_18_STABLE. 2007-02-28 17:18:28 +00:00
tjhunt 4f390427d5 Minor problem with restoring numerical questions. 2007-01-17 17:29:08 +00:00
tjhunt a4514d91de Renamed new commentary feature to 'general feedback'. 2006-09-19 13:35:42 +00:00
tjhunt 717cfb0a7b Rename column question_dataset_items->number to itemnumber, to avoid reserved word. 2006-09-19 10:56:00 +00:00
tjhunt 307f045f07 MDL-5969 Let multiple choice questions have feedback that does not depend on the chosen answer
In passing, I fixed MDL-6297 Export of multichoice questions in Moodle XML format doesn't save shuffle option too.
2006-08-24 10:22:43 +00:00
tjhunt 4abc23b2ae Fix some Eclipse code warnings. Merged from MOODLE_16_STABLE. 2006-08-18 21:23:15 +00:00
tjhunt 1b8a7434e2 Bug 6239 - Allow questions to have some teacher-supplied commentary.
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
2006-08-11 14:59:18 +00:00
tjhunt 78b9c960e9 Fixed notice when restoring a numerical question with no units. 2006-07-12 17:37:36 +00:00
skodak e7251cdd21 Bug #5522 - question/restorelib.php error; merged from MOODLE_16_STABLE 2006-06-07 14:57:26 +00:00
tjhunt 4919564de9 Fix notices from the quiz module on backup and restore. Merged from MOODLE_16_STABLE. 2006-06-06 14:15:48 +00:00
gustav_delius 754d6f1bb3 Corrected location of restorelibpre15.php, see http://moodle.org/mod/forum/discuss.php?d=44156 2006-04-26 20:32:54 +00:00
gustav_delius 44582764af Fixed recoding of parent field for random questions 2006-04-11 21:40:28 +00:00
gustav_delius cbe20043b5 Whenever a question is edited the version field is set to question_hash(), see bug 2958. 2006-04-10 22:10:32 +00:00
gustav_delius ea889e7744 Recode qtypes during restore of old backups. 2006-03-22 10:32:29 +00:00
gustav_delius 315559d354 Moving question restore code into questiontype classes. The restore is now temporarily broken but I will fix it as soon as I get home. 2006-03-21 20:59:32 +00:00
gustav_delius fe1106f0d1 Now the question backup code has been separated from the quiz backup code. 2006-03-21 16:50:42 +00:00
gustav_delius b2315a929d Don't try to recode empty answers. 2006-03-19 11:03:12 +00:00
gustav_delius c0749a1605 Fixed backup and restore for match questions 2006-03-19 09:50:43 +00:00
gustav_delius 28b904c8c2 Fixed multichoice restore
Print message when recoding fails
2006-03-19 09:20:42 +00:00
gustav_delius ccccf04f70 Multianswer restore now works.
Timelimit is rounded to integer before saving in the database
Some more diagnostic error messages
Towards more plugable question types: $QUIZ_MENU is now populated by the question types themselves.
2006-03-18 14:14:55 +00:00
gustav_delius c6abbe5e39 Some incomplete work on the restore code (committing only because I am moving to a different machine) 2006-03-16 21:17:31 +00:00
gustav_delius 12fcd27da6 Some work on question restore code, not complete 2006-03-13 00:18:38 +00:00
gustav_delius b2b97d6834 Every questiontype should have its own backup and restore code. This is a first step in that direction. I have created the individual restore libraries for all question types but they are not yet used. 2006-03-12 21:27:14 +00:00