974 Commits

Author SHA1 Message Date
tjhunt
e2134c5ddc Following the fixes for MDL-14750 and MDL-10899, do a database upgrade that fixes any bogus values in the parent or category columns of multianswer questions' subquestions. 2008-05-09 15:50:44 +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
7fb1b88dc7 MDL-10899 - There is some data associated with some questons that needs to be udpated when moving questions between categories. This commit deals with subquestions, and lays the foundation for fixing the other problem - datasets - which is files as bug 14767. 2008-05-09 15:05:36 +00:00
tjhunt
08121fadcb Problem when editing calculated questions when installed on Postgres. 2008-05-09 15:02:24 +00:00
tjhunt
a588d813cb MDL-14762 - find and update links to files in answer->feedback when moving questions between contexts. 2008-05-09 13:13:43 +00:00
tjhunt
994fbaabc9 MDL-14727 - Do a database update to fix random questions with the wrong parent (there may be some of these floating around in people's databases becuase of MDL-5482.) 2008-05-07 13:34:54 +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
tjhunt
0c9822268f MDL-14681 - Fix package name of question/update.php. 2008-05-06 07:34:46 +00:00
thepurpleblob
3f5633df11 MDL-14406
Ensure 'length' field for description type questions is 0 and that
default for all questions is 0

Merged from STABLE_19
2008-05-01 12:21:55 +00:00
scyrma
fca9088244 MDL-14588 - Prevent error message when calling function with null variable (merge from 1.9) 2008-04-29 03:30:01 +00:00
tjhunt
8e77884c4e MDL-13982 - Performance problem when deleting questions from large question banks. Thanks to Michael Spall for this fix. Merged from MOODLE_18_STABLE.
At the same time, remove direct references to $_REQUEST and $_POST in this code.
2008-04-23 13:45:38 +00:00
tjhunt
92a95034ff Revert bogus error -> print_error changes that were stopping my patch from merging. 2008-04-23 13:42:50 +00:00
tjhunt
e31a98a6e1 MDL-14352 - General feedback for descriptions not showing up on the review page, as it should. 2008-04-22 16:17:01 +00:00
tjhunt
5389648d0b MDL-14467 - qtype_multichoice help file in the wrong place - merged from 1.8/1.9 stable.
In addition, move the other multichoice help file to the correct location, and update all references.
2008-04-22 14:40:09 +00:00
tjhunt
a56d98597e MDL-14407 - supplimental - Deal with another way the category id can be in the URL after it is deleted. 2008-04-22 14:06:58 +00:00
tjhunt
84857f8ccd Minor improvement to a subtle edge case of question preview that probably only affects Opaque questions.
Also, revert dongshen's bad error -> print_error changes in this file.
2008-04-17 17:56:41 +00:00
tjhunt
767fac2902 MDL-14407
1. After deleting a question category, it redirects you back to a question bank URL. In some circumstances, this URL will contain a cat=nnn parameter of the category you have just deleted, which naturally leads to an error. This parameter needs to be removed.

2. When there are questions in the category that need to be moved, the category id we are moving to is not exploded on ','.
2008-04-17 15:59:49 +00:00
tjhunt
096d42f47e MDL-14392 - Notice from description question types when you don't have edit permission 2008-04-16 16:56:33 +00:00
dongsheng
1e7386c9ad MDL-14129, cannot use a full string in the param 2008-04-09 03:10:26 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
tjhunt
375ba6e52b MDL-13968 - Use h2 tag for the question number, as it is better for accessibility 2008-03-18 18:58:29 +00:00
pichetp
d650e1a315 nextpageparam["forceregeneration"] was not implemented correctly line 582 2008-03-10 10:53:41 +00:00
tjhunt
e2ae84a298 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:02 +00:00
pichetp
c958ac9301 MDL-13457 Validation when moving to another category 2008-02-20 09:19:03 +00:00
tjhunt
694061adf4 Fix dangerous comment. (MDL-13536) 2008-02-19 17:14:12 +00:00
pichetp
a0052d89ac cleaning // 2008-02-18 20:43:08 +00:00
pichetp
292a01dfa7 removing an echo diagnostic message MDL-12063 2008-02-18 17:00:23 +00:00
pichetp
814a96fa47 MDL-13419 removing space before input html element 2008-02-18 16:37:13 +00:00
pichetp
fa0f94c085 MDL-12421 removing the change done and not correcting already saved values 2008-02-13 02:19:54 +00:00
pichetp
2dc8beafcf Adding returnurl element MDL-12388 to return to the quiz editing 2008-02-13 01:19:03 +00:00
thepurpleblob
fc22da99e2 Added check for <text> fields that contain markup (an error!)
Merged from STABLE_19
2008-02-12 11:57:39 +00:00
jamiesensei
a18fbcfb50 MDL-13298 "Question bank displays always page 1 after adding new question" this was caused because the question creation page was redirecting back to the question back edit page and telling it to change to the category of the question that was just saved. This was causing the edit page to go back to page 0 of the new category. Now we only go back to page 0 if the category has actually changed. Merged from MOODLE_19_STABLE 2008-02-05 12:14:46 +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
jamiesensei
9aa2d50136 this function should work for all modules but forgot to remove 'quiz' from sql. 2008-02-05 09:23:51 +00:00
gbateson
7433742566 MDL-13048 fix indefined course id when importing a Hot Potatoes quiz into the Lesson module 2008-02-05 04:13:51 +00:00
gbateson
9d042298ff fix for MDL-13174 ' replace calls to html_entity_decode() with hotpot_charcode_to_utf8() because html_entity_decode is broken in PHP4 2008-01-31 07:28:30 +00:00
tjhunt
8bb3fac17c MDL-13110 - Manually grading random questions does not work. Fix thanks to Ken Burres. 2008-01-30 18:18:36 +00:00
pichetp
eb29fc2747 MDL-12255 Adding questiontext decoding and subquestions validation when editing, decodeverifyquestiontext string 2008-01-27 17:16:35 +00:00
pichetp
b119a40f16 MDL-3274 further trimming 2008-01-26 15:21:44 +00:00
pichetp
eba53585bd adjusting input display to answer length MDL-3274 2008-01-26 14:30:29 +00:00
tjhunt
abd616eac4 MDL-13150 - Remove extra <br /> tag for XHTML strict validation - Thanks to Joseph Rézeau 2008-01-24 15:06:51 +00:00
jamiesensei
ede67707a6 MDL-13034 fixes "insertion of question / category ids at the CONTEXT_MODULE level does not respect whether the instance of the module has been selected for backup" and cleans up code a little. 2008-01-18 14:49:59 +00:00
scyrma
aa68a7b0a2 MDL-13020 : deprecates make_table 2008-01-16 08:17:25 +00:00
tjhunt
8b66a42a96 MDL-13011 - Improve import form layout. 2008-01-15 15:25:02 +00:00
thepurpleblob
86b685208d MDL-12016:
Read xml structure correctly to get category path.

Merged from STABLE_19
2008-01-15 14:52:49 +00:00
thepurpleblob
40e7144323 Reverting Mike C's change in MDL-12016 2008-01-15 14:35:59 +00:00
pichetp
fa1661c27c MDL12932 -Random Short-Answer Matching does not display correctly in Item analysis report 2008-01-11 14:24:10 +00:00
tjhunt
06e2b0de2a MDL-12771 - change multianswer quetsion type HTML to more closely match that of other question types, in order to fix a layout glitch in Moodle 1.9. 2008-01-08 18:37:46 +00:00
tjhunt
a656e0de48 MDL-12785 - Partially correct tick icon not displayed for MULTICHOICE, single answer questions. Fix thanks to Joseph Rézeau. Merged from MOODLE_18_STABLE. 2008-01-08 18:29:20 +00:00
tjhunt
cb29abc508 MDL-12666 - When moving questions between categories, we should default to copying amy linked files. Merged from MOODLE_19_STABLE. 2007-12-20 11:28:18 +00:00