jamiesensei
9f1017a0be
correct logic error that broke caching.
2007-08-16 05:19:33 +00:00
tjhunt
1e05bf54b2
Space beteen category name and count.
2007-08-15 12:06:21 +00:00
tjhunt
d402153a54
MDL-10581 - Each attemtp builds on last & multi-page quizzes was casuing grading errors. Merged from MOODLE_18_STABLE.
2007-08-10 15:22:28 +00:00
jamiesensei
3bee1ead40
merging MOODLE_19_QUESTIONS with HEAD
2007-08-09 21:50:59 +00:00
tjhunt
4f2c86ad81
OU bug 3463 - warnings when you start an attempt in 'each attempt builds on last' mode.
2007-07-17 15:27:59 +00:00
jamiesensei
61d9b9fc5d
oops. reverting changes which shouldn't have been committed to HEAD.
2007-05-25 05:49:51 +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
jamiesensei
d92b9d9140
new sql to fetch question counts for categories all in one sql query. Question count now included in drop down box.
2007-05-21 09:26:17 +00:00
jamiesensei
3a3c454ede
UI for editing questions changed to support sharing questions in multiple contexts. Also changed import / export and category editing form to use formslib.
2007-05-20 16:17:48 +00:00
poltawski
a044c05ddb
MDL-9742 - changed tabs to spaces in a few places where there are one
...
or two
2007-05-08 15:07:25 +00:00
jamiesensei
71e0eda8f7
standardizing params for edit question page. All pages now use courseid instead of course or id.
2007-04-30 06:48:57 +00:00
tjhunt
47e1697814
The question core code was restricting question types unnecessarily. This is a temporary fix, prior to a proper refactoring.
2007-04-25 11:20:22 +00:00
tjhunt
732c472fca
Remove duplicate $Id$
2007-04-24 23:23:25 +00:00
tjhunt
7d87171ba9
MDL-9565 - Question preview links don't work in developer debug mode, and not XHTML strict. Merged from OU Moodle.
2007-04-24 16:59:32 +00:00
tjhunt
c73189115f
Work round PHP4 being a stinking pile of crap.
2007-04-13 10:03:10 +00:00
tjhunt
0558f04745
Reveted Nick's alleged typo fix.
Thank you very much for trying to fix my code, but your change is definitely wrong. get_context_instance needs to be passed a coursemoduleid, not a coursemodule object.
Why did you think there was a typo?
And neither of us had noticed that I had left some debug code in. Removing that.
2007-04-13 08:12:08 +00:00
nicolasconnault
f4c0d852a2
Fixed a typo inadvertently introduced by Tim Hunt in revision 1.85.2.10.
2007-04-13 01:26:22 +00:00
tjhunt
b423cff11a
MDL-9325 - mod/quiz:ignoretimelimits does not work.
This is a really horrific short-term fix to a problem not of my making.
Merged from MOODLE_18_STABLE.
2007-04-12 22:16:47 +00:00
tjhunt
99ba746d29
MDL-6368 and MDL-6369 - allow question type plugins to easily provide some bits of Javascript and CSS.
...
If there are any of the files styles.css, styles.php, script.js or script.php in the plugin folder, they will be linked to in the head of the quiz attempt page (only for the question types used on that page).
If you need to do something more complicated in your question type, you can override the get_html_head_contributions method instead.
2007-04-12 15:58:32 +00:00
tjhunt
dcc2ffde63
MDL-9082 - moodle/question:manage does not let you create questions. Also:
* remove useless option from print_question_icon
* use the right module context in question_list
* a bit of XHTML strrrict in question_list
Merged from MOODLE_18_STABLE.
2007-04-11 22:57:46 +00:00
tjhunt
9523cbfcef
Small code cleanup to fix an obscure warning. If you got an error in the middle of creating a quiz attempt, you could get an attempt with no states. Then that caused an error when the attempt was deleted. Merged from MOODLE_17_STABLE.
2007-03-30 10:17:16 +00:00
tjhunt
46e910c7cd
Fix notice. Merged from MOODLE_17_STABLE.
2007-03-30 09:34:05 +00:00
tjhunt
fb708c1130
MDL-6269, MDL-8958, MDL-8990 - Major fix to do with each attempt builds on last:
...
It used not to work with random questions, and there were problems with the computation of the grade, and regrading. Fix thanks to Paulo Matos, who not only fixed the bug and tested it, but was also incredibly patient waiting for me to have time to commit the changes to CVS.
Merged from MOODLE_17_STABLE.
2007-03-29 16:36:16 +00:00
tjhunt
a6b691d84d
Add developer debugging to something that should not happen, and fix one instance of it.
2007-03-29 16:05:55 +00:00
tjhunt
d187f66046
MDL-8946 - Fix a regression that broke question export.
Also, partially clean up the way that question bank navigation tabs are printed, so the code is not duplicated in the quiz.
Some other miscellaneous code cleaning too.
Merged from MOODLE_18_STABLE.
2007-03-21 10:41:28 +00:00
tjhunt
b030a630c0
MDL-8764 - In menus, show question categories from this course first, then published categories from other courses. Merged from MOODLE_18_STABLE.
2007-03-05 18:05:51 +00:00
tjhunt
3ed998f343
MDL-6773 - eliminate duplicate code for getting a list of question categories. Merged from MOODLE_18_STABLE.
2007-03-01 09:45:53 +00:00
tjhunt
7919952cf7
Remove CVS conflict markers.
2007-02-28 15:16:01 +00:00
moodler
6ba65fa08d
Merged Nicolas' changes from MDL-8582 into HEAD.
2007-02-28 06:25:22 +00:00
thepurpleblob
c09f474dd0
MDL-8450
Added support for including question categories in a quiz export.
2007-02-07 10:14:22 +00:00
tjhunt
a95cd8a650
Get the alt text for the question type icon in a better way.
2007-01-30 11:09:32 +00:00
tjhunt
47cdbd1f64
Question session state logic improvement - if students have not yet entered an answer, don't do an EVENT_SAVE.
2007-01-11 12:18:10 +00:00
skodak
0d905d9f34
MDL-7861 new class .icon and .iconsmall
2007-01-08 09:14:05 +00:00
jamiesensei
375ed78a93
fixed the MoodleQuickForm_questioncategory, question_category_options function wasn't committed so I've implemented it from question_category_select_menu code.
2007-01-07 13:54:36 +00:00
jamiesensei
271ffe3f25
various formslib work including bug fixes for MDL-8039 id attribute collision between forms and page ids. Also added editor helpbutton. This is a fix for MDL-6941 need the ability to associate several helptopics with htmleditor. Also started on converting forms for question types to formslib.
2007-01-07 12:46:47 +00:00
moodler
7cd2f598aa
More XHTML strict - removed image borders and height/width
2007-01-05 12:58:22 +00:00
thepurpleblob
dd0730c2dd
Added some cleaning to the category path for some safety.
2007-01-05 10:16:12 +00:00
vyshane
bc75cc5210
Added 2 new functions: question_get_feedback_image() and question_get_feedback_class().
2006-12-18 06:07:44 +00:00
thepurpleblob
f5c154078a
Merged from STABLE. Addition function to find or create category path.
...
MDL-4163
2006-11-29 13:29:00 +00:00
tjhunt
84bf852c1b
MDL-7428 - Quiz regrade removes student answers from essay questions that have been graded. Merged from MOODLE_16_STABLE.
2006-11-15 17:32:49 +00:00
tjhunt
f9c92efef3
MDL-7531 Fix SQL that does not work in Oracle. Thanks to Mark Hetherington for the fix. Merged from MOODLE_17_STABLE.
2006-11-14 15:41:20 +00:00
tjhunt
95ac8a4039
MDL-6315 - Manually grading a question 0 marks was not being registered. I took the opportunity to clean up the logic in this function a bit. Merged from MOODLE_16_STABLE.
2006-10-17 23:23:18 +00:00
skodak
57f1b91497
fixed some incorrect strtolower() calls that were breaking non ascii languages MDL-6135
2006-10-07 20:47:54 +00:00
tjhunt
13835c77b6
MDL-6731 Can't save manual comment on a quiz question. I had missed one instance of the comment -> manualcomment column rename.
2006-10-06 17:22:08 +00:00
tjhunt
b20ea66988
Hopefully improve performance on site with lots of question categories Merged from MOODLE_16_STABLE.
2006-10-06 16:48:54 +00:00
tjhunt
1da5a36294
More capability name typos.
2006-09-20 08:01:59 +00:00
toyomoyo
9ce384ba1e
relacing deprecated functions with capability checks
2006-09-19 14:16:40 +00:00
tjhunt
3e3e5a4030
Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.
...
I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.
2006-08-24 16:44:15 +00:00
tjhunt
3ebdddf70f
MDL-4816 Fix silly error in my commit for this bug.
2006-08-24 11:37:10 +00:00
tjhunt
c82f76d050
MDL-4816 Short answer question type considers '100' and '100.' to be the same
Actually, this may have affected other question types too.
2006-08-23 21:17:23 +00:00