Commit graph

61 commits

Author SHA1 Message Date
tjhunt
4f089b2155 MDL-6095 - Question bank tables are created by the quiz module. The really core tables are now created by lib/db, the datasetdependent tables are not created by the datasetdependent question type, and the question_numerical_units table is now created by the numerical question type. The last two are shared by the calculated question type, but there is no problem with them being created in the order they are now created in. In the past, before the policy that upgrade to 2.0 woudl have to go via 1.9, there would have been bit problems to do with the order of updates, but fortunately that is no longer an issue. 2008-08-15 07:23:18 +00:00
pichetp
f7443920c8 better validation of null answers MDL-8475 2008-08-14 09:39:22 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
nicolasconnault
b9bd6da4f8 CONTRIB-490 Added support for scripted generation of questions. Calculated type not yet supported (datasets too complicated ;) 2008-06-12 09:15:16 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +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
9db7dab2ca MDL-15095 towards restore lib dml conversion 2008-06-03 22:36:54 +00:00
dongsheng
0b4f4187a2 "MDL-14129, fix print_error" 2008-05-21 05:07:37 +00:00
skodak
6751698058 MDL-14451 removed pre 1.9 upgrade code 2008-05-14 23:35:00 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +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
c85aea03d3 Fix notice in numerical question. 2007-12-10 11:57:24 +00:00
skodak
a78890d593 MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
tjhunt
3a513ba4df MDL-12282 - fix typo in previous commit. Sorry. 2007-11-22 11:51:16 +00:00
tjhunt
b4d7d27cea MDL-12282 - Numerical question type - the units are displayed on the editing form with a stupidly large number of decimal places. Merged from MOODLE_18_STABLE. 2007-11-20 16:57:22 +00:00
tjhunt
fe93ba838b MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method signature was changed. This patch fixes all calls to parent::validation in the question editing forms. Merged from MOODLE_19_STABLE. 2007-11-20 12:41:04 +00:00
tjhunt
1061756d8e Minor whitespace fixup. 2007-11-07 15:41:20 +00:00
skodak
f2e4a0818a preparation for 1.9 beta 2 - setting correct requires in mods and plugins 2007-10-10 16:09:17 +00:00
stronk7
126984a047 Second pass. Questions. Some more default comments are out. MDL-11385 2007-09-24 22:20:37 +00:00
jamiesensei
271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
Martin Langhoff
08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
skodak
cdbbd26f80 MDL-10064 global $CFG in unit test files is non standard, it is recommended to use MOODLE_INTERNAL test in all library files 2007-06-09 16:32:36 +00:00
skodak
52f81103d3 MDL-10063 simpletestlib.php included from majority of unit tests - let's include it once from the test runner itself 2007-06-09 16:17:33 +00:00
tjhunt
699a472b5b Remove invalid unit test. 2007-06-01 13:52:36 +00:00
tjhunt
ed0ba6da04 Occasional unique-key violations were caused by some really weird code to do with units in numerical questions. This cleans it up. 2007-04-24 23:37:32 +00:00
tjhunt
d95c82ab59 MDL-9173 - Can't create match anything answer to numerical question type. Merged from OU Moodle. 2007-04-02 13:02:09 +00:00
pichetp
830e47a817 Give the question bank code sensible PHPdocumentor package names. 2007-03-21 02:04:53 +00:00
tjhunt
93c80e1c0e MDL-8140 Other units disappear from the editing form when there is no unit with multiplier 1. Merged from MOODLE_18_STABLE. 2007-03-20 22:23:56 +00:00
pichetp
1976496e38 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 22:04:30 +00:00
skodak
b4c46a8b0f MDL-8913 use proper returned reference assignment for forms elements (PHP4 trouble); merged from MOODLE_18_STABLE 2007-03-15 12:42:39 +00:00
tjhunt
277e551b88 Oops, reverting. Eloy had already fixed it. 2007-03-14 21:10:55 +00:00
tjhunt
2099d05dec MDL-8232 - can't use = on TEXT colums with MSSQL - was breaking numerical question type upgrade. 2007-03-14 21:07:37 +00:00
pichetp
fe881becb2 merge from 18_STABLE MDL-8475 2007-03-03 04:43:50 +00:00
pichetp
dcd4192a99 grading correctly small numbers MDL-8478 merge from 18_STABLE 2007-03-02 20:45:12 +00:00
tjhunt
51e89d95f7 Improve validation code to match the recent improvements in shortanswer validation.
Also do some validation on the units entered to stop duplicate units being defined.

 Merged from MOODLE_18_STABLE.
2007-02-28 17:17:40 +00:00
stronk7
7039d93c31 Adding two helper functions and modify upgrade to
work properly under MSSQL and Oracle. MDL-8303

Merged from MOODLE_17_STABLE
2007-01-26 21:28:48 +00:00
jamiesensei
3a298174e8 important security fix previous use of ['type'] in repeatedeloptions array would not have worked. 2007-01-21 10:32:42 +00:00
jamiesensei
cfa73a9551 answer '0' is a valid answer for a numeric question. 2007-01-19 07:21:51 +00:00
tjhunt
4f390427d5 Minor problem with restoring numerical questions. 2007-01-17 17:29:08 +00:00
skodak
32db0d42c9 MDL-8166 some forgotten set_defaults converted to set_data 2007-01-12 19:01:31 +00:00
jamiesensei
6e9b6ba207 numerical and random question type creation form migrated to formslib 2007-01-07 16:10:42 +00:00
tjhunt
55894a4205 MDL-7928 - Numerical question type should use * for the match anything answer. Merged from MOODLE_17_STABLE. 2006-12-15 18:30:39 +00:00
tjhunt
a4d79b0eb5 MDL-7567 Numerical questions occasionally mix up the order of their answers. Merged from MOODLE_16_STABLE. 2006-11-15 16:58:44 +00:00
stronk7
5d0fc5c33d Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:46:02 +00:00
stronk7
3aac1dc9a0 Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:39:10 +00:00
stronk7
dfdd533230 New upgrade.php file added for this module. MDL-7214 2006-10-26 18:12:42 +00:00
tjhunt
026bec73b8 Fix bug with numerical questions with multiple answers. Merged from MOODLE_17_STABLE. 2006-10-17 15:56:52 +00:00
tjhunt
a21567892f Refactor how question types register themselves with the question bank. This change makes it easier for 3rd party question types to control their destiny, but is also backwards compatible, in that old 3rd party plugins will still work. See http://moodle.org/mod/forum/discuss.php?d=51796 for more details. 2006-08-15 21:25:38 +00:00