764 Commits

Author SHA1 Message Date
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
tjhunt
9088c6e2e4 MDL-12647 - Moving multiple_choice questions between contexts breaks them.
There was a subtle interaction between get_question_options  and replace_file_links for this question type.

Merged from MOODLE_19_STABLE.
2007-12-19 12:11:03 +00:00
tjhunt
46a5a85b58 MDL-12616 - Improve layout so you can distinguish the student's response to an essay question from the feedback. Merged from MOODLE_19_STABLE. 2007-12-17 12:28:14 +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
df06c4bb88 Improve error messages. 2007-12-13 17:24:54 +00:00
tjhunt
d3879eafec Fix Javascript error from essay questions on the review page. 2007-12-12 18:10:48 +00:00
pichetp
4efa376ffb MDL-12421 rounding 2007-12-11 09:13:17 +00:00
pichetp
87cd4f5469 MDL-12503 Loguniform and MDL-12421 rounding 2007-12-11 08:56:24 +00:00
jamiesensei
2c44a3d393 MDL-12410 - a way to select which questions to export, includes debug messages 2007-12-11 03:24:35 +00:00
tjhunt
c85aea03d3 Fix notice in numerical question. 2007-12-10 11:57:24 +00:00
tjhunt
6e4ca69ad7 MDL-12393 - Layout tweaks on question category editing page. Merged from MOODLE_19_STABLE. 2007-11-30 11:00:48 +00:00