Git commits in Moodle 1.9.1 by Tim Hunt

commit 4d06e61a53fdd89d8340b4b6c44a3afdb48f0682
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 16 Dec 2011 03:13:04 +0800
Tag:    v1.9.17

MDL-29294 qtype match restore problem on Oracle.

commit 9d656f584ad11ef8c3543a83ab7e79ee8fff4661
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 02 Nov 2011 01:35:35 +0800
Tag:    v1.9.15

MDL-30038 mod_lesson was not working on PHP4.

commit 71712c94245ebaedd2d05af648ff5fb977268184
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 21 Sep 2011 21:37:50 +0800
Tag:    v1.9.14

MDL-29462 html_to_text('0') gives '', not '0'.

commit 336785367045035991b4ced8a658eb9229baa600
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Mon, 15 Aug 2011 21:55:50 +0800
Tag:    v1.9.14

MDL-28639 question import should set timemodified and modified by.

commit 4d0a6fec12f818219d6e25833bc8c31cb14196d8
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 28 Jul 2011 18:50:42 +0800
Tag:    v1.9.14

MDL-28508 bad string trunction in Aiken format.

commit 71ec5d19df4f506ca810cd55e25ebca4c5b94962
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 29 Apr 2011 19:09:05 +0800
Tag:    v1.9.12

MDL-26937 quiz grades report. Work-around MySQL fussiness, like for MDL-26416.

commit 551a610ed1a586aad184b5787415a05fcae7d7d4
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 29 Apr 2011 06:54:59 +0800
Tag:    v1.9.12

MDL-26981 qtype_random fix restore of attempt data.

commit 5cf3a84aee20ce15d06a96031673637a2699a16c
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 09 Mar 2011 00:52:38 +0800
Tag:    v1.9.12

MDL-21446 truncate >31 char worksheet names that otherwise break Excel export.

commit 6d276b3254cbe2dc1d041dc08712e83829334ab5
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Sat, 05 Mar 2011 02:58:54 +0800
Tag:    v1.9.12

MDL-20946 fix gradebook SQL to cope with multi-role and deleted users.

commit 83f22aae0eb1a31f2612c35dda4a0cd1b7543808
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Sat, 05 Mar 2011 01:45:03 +0800
Tag:    v1.9.12

MDL-26324 overall feedback problem when quiz changed to being graded out of 0

commit 49b252149234232745766d6c913c75fb32140c6b
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Sat, 19 Feb 2011 03:18:06 +0800
Tag:    v1.9.12

MDL-26505 rounding problem in quiz_save_best_grade.

commit 12e4ff0d194729c4dce4bbd1fc2abc05e7d4cb84
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Sat, 19 Feb 2011 02:25:28 +0800
Tag:    v1.9.11

MDL-21811 also need to fix the rounding on the review page.

commit 8d5eaee1c9bea549215791cb84e68c94bab8d3fc
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Sat, 19 Feb 2011 01:23:41 +0800
Tag:    v1.9.12

MDL-25122 Quiz review page does not check and enforce separate groups mode.

commit db99a96d1e1fd1998c3c58dcd1adae97e217c2ce
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 17 Feb 2011 17:43:32 +0800
Tag:    v1.9.11

MDL-21811 use the un-rounded grade to display the overall feedback in the quiz reports.

commit 54c489cb739d25f64f23268cfd61814c45419404
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 09 Nov 2010 00:00:29 +0800
Tag:    v1.9.11

question bank MDL-24312 problem when deleting a course with orphaned categories.

commit 9e8badd3a07cf0130678f9a5d78edacff384e334
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 03 Nov 2010 05:50:20 +0800
Tag:    v1.9.11

html_to_text MDL-25018 fix regression caused by be previous comment. Thanks Eloy for spotting this. I was worried about this happening, so I checked the diff before committing, to make sure something like this did not happen, and still Eclipse+CVS screwed it up for me. Sorry.

commit 36a40748e18b369e71c69960b329d531cd53663d
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 03 Nov 2010 04:03:50 +0800
Tag:    v1.9.11

MDL-25018 stop html_to_text from breaking utf-8 multibyte characters.

commit a1a0d9a49dfacab0db1d05e1d88be5fe4ae1a1c5
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 12 Aug 2010 03:05:50 +0800
Tag:    v1.9.10

question import/export MDL-23198 extra_question_fields not handling special characters properly. Thanks to Oleg Sychev for the fix.

commit 874a2eaf550a4b4eda57774b45f0250e8251e71d
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 12 Aug 2010 02:34:44 +0800
Tag:    v1.9.10

quiz reports MDL-23161 notify(get_string('nostudentsyet')) breaking downloads.

commit 96666fb36af5eec89be1acdae8ee959f4373373d
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 06 Aug 2010 19:41:48 +0800
Tag:    v1.9.10

quiz delays MDL-20956 don't let overdue attempts + delays block students.

commit 8e47727dab41203c20796373a941c4cf7c467a42
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 06 Aug 2010 01:33:09 +0800
Tag:    v1.9.10

question moving MDL-21195 add missing error message strings.

commit 9e0825e908271dd3b4aaf628e23dd0c37ef08912
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 05 Aug 2010 23:51:40 +0800
Tag:    v1.9.10

quiz password: MDL-20779 the page that asks for the password must call print_header and print_footer, even in secure mode.

commit 155ac544d56f5ac77e2a292108da60ea83b2a7e7
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 05 Aug 2010 23:37:05 +0800
Tag:    v1.9.10

quiz reports MDL-21262 do not work for quizzes on the front page. This was already fixed in 2.0. A bit of a hack to make it work in 1.9 too. Hopefully there won't be any side-effects.

commit d35f34c2827dfbc0cfdafeada96ab9b84104af4e
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 05 Aug 2010 21:11:28 +0800
Tag:    v1.9.10

qformat xml MDL-22743 questiontextformat not imported correctly since the fix for MDL-9700 went in.

commit 348aae868089ed626eee204cd2e02ad58353710a
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 05 Aug 2010 20:43:15 +0800
Tag:    v1.9.10

quiz reports MDL-21111 Quiz duration is reported in years if Time Finish is before Time Start

commit f7046b25999a51a92421295da04279eb5c524438
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 05 Aug 2010 20:13:29 +0800
Tag:    v1.9.10

multianswer question import MDL-11326 make a better question name. Also fix coding style in this file.

commit f47906fbf577cd2e18ed21bb2f92f2e4f06d328f
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 05 Aug 2010 01:39:56 +0800
Tag:    v1.9.10

weblib MDL-22664 html_to_text should not strip images, it should replace them by their alt text. Also, an new optional argument to html_to_text to control word-wrapping.

commit 981a7785be48e8f753070cc72978a235d5f9f529
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 03 Aug 2010 21:15:28 +0800
Tag:    v1.9.10

quiz overview report MDL-23377 can't delete attempts when there are no students. Actually, reviewing this, I noticed some other security checks were missing, for example we should ensure the users can only delete attempts belonging to this quiz!

commit bed436f084ba083c567a24074789dd5ceac5d340
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 03 Aug 2010 20:54:24 +0800
Tag:    v1.9.10

quiz overview MDL-23377 whitespace cleanup, before doing the real fix.

commit e9686d7015c13980a97c58c93745d47164e63508
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 03 Aug 2010 18:39:54 +0800
Tag:    v1.9.10

qtype shortanswer MDL-20380 small refactoring to help subclasses. Thanks to Oleg Sychev.

commit 247718515576b402ef5f5f9812ca2c7b3cdd6076
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 03 Aug 2010 00:33:29 +0800
Tag:    v1.9.10

grader report NOBUG strange 'null' tooltip sometimes appeard in IE.

commit e8a63fdabada0673b35cf5b812dc346b35b0a5f1
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 28 Jul 2010 22:18:37 +0800
Tag:    v1.9.10

MDL-23560 questions import/export. PHP5 protected had been comitted to the 1.9 branch. Sorry.

commit d256e1c021e092de4cfd9248d481edf2d032ca51
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 06 Jul 2010 05:55:25 +0800
Tag:    v1.9.10

quiz NOBUG Turn off autocomplete on the quiz form in a way that actually works.

commit 6ab47dd350d24775cd67dd0e9d32e0e1a66a2523
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 02 Jul 2010 21:36:50 +0800
Tag:    v1.9.10

question import/export: MDL-22100 ' / etc. in category names confuse the import/export.

commit 0b76235280894c78ebcc4f4eccabb45aff558ce8
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 02 Jul 2010 21:36:49 +0800
Tag:    v1.9.10

file testimportexport.php was added on branch MOODLE_19_STABLE on 2010-07-02 13:36:50 +0000

commit 9b312b9402aa3f8e61b48e61f8dd72a1a9b4c147
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 24 Jun 2010 04:14:27 +0800
Tag:    v1.9.10

quiz global settings: MDL-22808 Cannot turn adaptive mode on globally. Because of a missing constant definition.

commit b312f97929ee8d9d4c343f32404fac0eec818721
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 24 Jun 2010 04:09:07 +0800
Tag:    v1.9.10

quiz reports MDL-22847 Cannot delete quiz attempts when a group is selected.

commit 98a38a3994ca2961e753893365759e3f3b828912
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 24 Jun 2010 03:59:51 +0800
Tag:    v1.9.10

quiz reports: Fix debug warning.

commit 7038c4c3719a89745d3291d16a066c31ac9a4eb5
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 22 Jun 2010 05:14:48 +0800
Tag:    v1.9.10

NOBUG two more broken $Id$s

commit adca4b84cc6e26356d407fbe19804ffaed2f1507
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 22 Jun 2010 05:08:56 +0800
Tag:    v1.9.10

NOBUG Fix broken $Id$ tag.

commit 69312b4f9c63e12b358f86e2ed85fd0cb36612bd
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Thu, 10 Jun 2010 22:58:37 +0800
Tag:    v1.9.10

question restore: MDL-22720 silly typo in question restore. Thanks to Vadim Dvorovenko for finding and fixing this.

commit 1fca73d04c6da450445302c3a19bb1d4fc28d6e9
Author: tjhunt <tjhunt>
Date:   Tue, 13 May 2008 01:29:47 +0800
Tag:    v1.9.1

MDL-14804 - question_list_instances is broken - It does not include the each modules lib file before doing function_exists($module->name.'_question_list_instances').

commit 07a7a711fa94ecb8a3e57658778cf2eeccbdc024
Author: tjhunt <tjhunt>
Date:   Mon, 12 May 2008 23:59:03 +0800
Tag:    v1.9.1

MDL-10899 - followup - need to move random questions too.

commit 26337523fadbd126c20fd541d511dcb84db8c0ae
Author: tjhunt <tjhunt>
Date:   Mon, 12 May 2008 23:28:31 +0800
Tag:    v1.9.1

New convinience function in accesslib: get_parent_contextid. Also, the start of some unit tests for accesslib, but only this trivial funciton, and the get_parent_contexts function it is based on. Still, it is a start.

commit 247fa0765470c521dad00167635bd8281cee00f0
Author: tjhunt <tjhunt>
Date:   Mon, 12 May 2008 18:44:38 +0800
Tag:    v1.9.1

MDL-14797 - Error when moving a course to an empty category on Postgres

commit 48b65cc3092db5b0b267d1fdee91f1658f163784
Author: tjhunt <tjhunt>
Date:   Fri, 09 May 2008 23:50:45 +0800
Tag:    v1.9.1

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.

commit ae8701d94df9225074bb437361849169260010f4
Author: tjhunt <tjhunt>
Date:   Fri, 09 May 2008 23:10:42 +0800
Tag:    v1.9.1

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.

commit c31957babf2867e376672b6035115eb8a27f31a1
Author: tjhunt <tjhunt>
Date:   Fri, 09 May 2008 23:05:38 +0800
Tag:    v1.9.1

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.

commit b0efb18b72748b685f4313b0a8ca9d934fc14de6
Author: tjhunt <tjhunt>
Date:   Fri, 09 May 2008 23:02:25 +0800
Tag:    v1.9.1

Problem when editing calculated questions when installed on Postgres.

commit 86462cee30510fc10d376b4b5cc1b2e09f054020
Author: tjhunt <tjhunt>
Date:   Fri, 09 May 2008 21:13:45 +0800
Tag:    v1.9.1

MDL-14762 - find and update links to files in answer->feedback when moving questions between contexts.

commit ae0561140ca6d942a71ce931479f02b3a7bbae26
Author: tjhunt <tjhunt>
Date:   Wed, 07 May 2008 21:35:53 +0800
Tag:    v1.9.1

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.)

commit bbf8fb528f483ebc28af9231955485e2791a8db9
Author: tjhunt <tjhunt>
Date:   Wed, 07 May 2008 21:04:39 +0800
Tag:    v1.9.1

MDL-14726 - rcache bit wrong in set_field

commit d1c840e99cfae4858163a9d0e404e5436882038e
Author: tjhunt <tjhunt>
Date:   Wed, 07 May 2008 20:31:37 +0800
Tag:    v1.9.1

MDL-5482 - Backup and restore problems for match, random and truefalse question types.

commit 7706180dbd54e4c53ffc612fec3121db5bd2dfb7
Author: tjhunt <tjhunt>
Date:   Tue, 06 May 2008 15:34:38 +0800
Tag:    v1.9.1

MDL-14681 - Fix package name of question/update.php.

commit fb0454d62c1ebb2cf1f0ffd4c3828f5a032d989e
Author: tjhunt <tjhunt>
Date:   Wed, 23 Apr 2008 22:49:24 +0800
Tag:    v1.9.1

Eliminate direct references to $_REQUEST and $_POST in the quiz code.

commit 49676c0186abeab8ead202fa04fcdf2a9b82de48
Author: tjhunt <tjhunt>
Date:   Wed, 23 Apr 2008 22:30:47 +0800
Tag:    v1.9.1

Improve PHPdocs on a function.

commit 029f59fbd1ca62c56d9151e7ff827e54043d3b42
Author: tjhunt <tjhunt>
Date:   Wed, 23 Apr 2008 21:45:40 +0800
Tag:    v1.9.1

MDL-13982 - Performance problem when deleting questions from large question banks. Thanks to Michael Spall for this fix. Merged from MOODLE_18_STABLE.

commit da7f4c196a65ae7e3e1f57277e06977b21f622f6
Author: tjhunt <tjhunt>
Date:   Wed, 23 Apr 2008 18:54:57 +0800
Tag:    v1.9.1

Tidy up whitespace.

commit 1dfa763a2fe017224bec7ab8d1cef7f2b33b7af9
Author: tjhunt <tjhunt>
Date:   Wed, 23 Apr 2008 00:16:58 +0800
Tag:    v1.9.1

MDL-14352 - General feedback for descriptions not showing up on the review page, as it should.

commit 54ee7246cc4f755617e7f115a3ddcc389288e204
Author: tjhunt <tjhunt>
Date:   Tue, 22 Apr 2008 23:19:45 +0800
Tag:    v1.9.1

MDL-14363 - Fix a broken redirect from mod/quiz/ attempt.php to edit.php when the quiz has not questions.

commit 89f9450834b1eaa750387eb29c70cb640cfec9b9
Author: tjhunt <tjhunt>
Date:   Tue, 22 Apr 2008 22:34:18 +0800
Tag:    v1.9.1

MDL-14467 - qtype_multichoice help file in the wrong place.

commit afe83312b276c5cb2c0b5409fc9fedcd6c6e076a
Author: tjhunt <tjhunt>
Date:   Tue, 22 Apr 2008 22:06:57 +0800
Tag:    v1.9.1

MDL-14407 - supplimental - Deal with another way the category id can be in the URL after it is deleted.

commit be80fc7e66244bd681b5e96245357ff05a366bbe
Author: tjhunt <tjhunt>
Date:   Thu, 17 Apr 2008 23:59:47 +0800
Tag:    v1.9.1

MDL-14407

commit bd5ec8cef40077b73ff57647a62db645cf00eed4
Author: tjhunt <tjhunt>
Date:   Thu, 17 Apr 2008 21:07:34 +0800
Tag:    v1.9.1

MDL-8682 - yet another followup. The javascript still was not quite right. you cannot rely on the case of element.nodeName.

commit e24aa3d6ba3c235f7f107cc1baa9407995b1715e
Author: tjhunt <tjhunt>
Date:   Thu, 17 Apr 2008 00:56:34 +0800
Tag:    v1.9.1

MDL-14392 - Notice from description question types when you don't have edit permission

commit b63b26f1aa11572048add18aa801c1cd9f2c5b15
Author: tjhunt <tjhunt>
Date:   Wed, 16 Apr 2008 22:39:39 +0800
Tag:    v1.9.1

MDL-14391 - Timestart shown twice in quiz overview report, instead of timefinish

commit d3bba8da1b6cea6b3310a397b55edc18139c4577
Author: tjhunt <tjhunt>
Date:   Mon, 31 Mar 2008 23:07:16 +0800
Tag:    v1.9.1

MDL-8682 - the last commit caused a regression that stopped it working.

commit 50522dae6ea9a02585b5d20fb04a03a1007a62f7
Author: tjhunt <tjhunt>
Date:   Wed, 19 Mar 2008 21:21:54 +0900
Tag:    v1.9.1

MDL-13978 - Notice when adding a new quiz

commit 43d565b15fc9b5689f724dc80f5f7d0d0e52daf8
Author: tjhunt <tjhunt>
Date:   Sat, 08 Mar 2008 02:30:52 +0900
Tag:    v1.9.1

MDL-13836 - When grades are imported, list users who had grades imported, but who are not currenly in the course.

commit edd01f0e5fe3405d01c65d1fdb2c3d0abe6b211a
Author: tjhunt <tjhunt>
Date:   Wed, 05 Mar 2008 19:16:16 +0900
Tag:    v1.9.1

MDL-13794 - Reordering tool does not work if you type the same number into two boxes.