Eloy Lafuente (stronk7)
2a4ba40f31
MDL-28488 backup - '[backup|restore]:configure cap does not control import mode anymore
2011-09-11 19:09:59 +02:00
Eloy Lafuente (stronk7)
77c2ca69af
MDL-28488 backup - make backup and import capabilities independent
...
Before this change, in order to perform one course import it was
necessary to have both the backupcourse and the backuptargetimport
capabilities. After agreement now each one will control its own
backup mode. Same applies for restore.
2011-09-09 17:46:21 +02:00
Eloy Lafuente (stronk7)
4a94d2c61f
Merge branch 'MDL-27001-master' of git://github.com/sammarshallou/moodle
2011-09-06 15:50:26 +02:00
sam marshall
8c40662e22
MDL-27001 'Show description' feature part 1: infrastructure that allows modules to support feature
...
The 'Show description' feature is about optionally including module description on the course page. This change include the necessary infrastructure - new database field, new FEATURE constant, changes to forms to display it, new language strings for it, backup and restore, and old course conversion. (I found the places to change by searching for an existing field in course_modules).
Documentation for the field is included in install.xml and in modinfolib.
2011-09-06 11:03:00 +01:00
Eloy Lafuente (stronk7)
01d6182fa8
MDL-29072 Import course - whitespace fixes
2011-09-05 10:41:57 +02:00
Henning Bostelmann
96576a2ac1
MDL-29072 Import course: Use correct capability for course selection
2011-08-23 19:07:54 +01:00
Sagie Maoz
0d5e5644b8
MDL-26721 automated backups - Fix typo
...
Causing the 'role assignment' backup inclusion to be tied to the users
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-08-08 15:40:55 +08:00
Tim Hunt
a23bda41e4
MDL-28618 question combined feedback: inconsistency in file areas.
...
The (partially|in)?correct feedback fields acutally store their files in a file area with component 'question'. Some code, however, was written as if they were stored in the qtype_whatever area.
2011-08-05 16:45:17 +01:00
Sam Hemelryk
3d738ce735
MDL-28548 Fixed up misleading comments
2011-08-02 11:42:40 +08:00
Dan Marsden
040aa0880b
MDL-28548 allow backup to contain info from multiple plagiarism plugins.
2011-08-01 10:27:39 +12:00
Petr Skoda
14c94235d8
Merge branch 'MDL-28369' of git://github.com/timhunt/moodle
2011-07-25 19:51:48 +02:00
Tim Hunt
ad858cd428
MDL-28369 Question hints not being restored.
2011-07-25 10:05:13 +01:00
Aparup Banerjee
ed6a14eb03
MDL-28453 backup - made temporary restoration courses hidden by default.
2011-07-25 16:34:11 +08:00
Sam Hemelryk
8b6c283f94
Merge branch 'backup_groups_master' of git://github.com/stronk7/moodle
2011-07-11 10:53:38 +08:00
Eloy Lafuente (stronk7)
438606fca3
MDL-28156 restore - fix some notices restoring empty courses
2011-07-10 13:13:23 +02:00
Eloy Lafuente (stronk7)
c8fbcaab1d
MDL-28156 restore - support restoring files without grade items
2011-07-10 00:52:45 +02:00
Eloy Lafuente (stronk7)
f70676a782
MDL-27438 backup - on course backups add course gropus and groupings
2011-07-09 19:27:23 +02:00
Sun Zhigang
858d100fa3
MDL-27833 Backup - Fix can't search courses with non-latin characters during importing
...
PARAM_ALPHANUMEXT filter out all non-latin characters, including
Chinese, Japanese and etc. Use PARAM_NOTAGS instead.
2011-07-07 10:39:47 +02:00
Tim Hunt
6b92faa47f
MDL-27821 backup_exception should not throw away debug info.
2011-07-04 15:35:30 +01:00
Eloy Lafuente (stronk7)
c5b0344b62
Merge branch 'MDL-28152-course-grade-category' of git://github.com/mudrd8mz/moodle
2011-07-01 22:33:04 +02:00
David Mudrak
41f21f92cf
MDL-28152 Improved detection of the course grade_category on course restore
2011-07-01 22:12:30 +02:00
Eloy Lafuente (stronk7)
7ace3a2199
Merge branch 'MDL-28006-convert-gradebook' of git://github.com/mudrd8mz/moodle
2011-07-01 00:09:50 +02:00
Eloy Lafuente (stronk7)
b1273d09dd
Merge branch 'MDL-28116-master' of git://github.com/sammarshallou/moodle
2011-06-30 23:56:53 +02:00
David Mudrak
d46badb176
MDL-28006 restore - improved handling of gradebook 1.9 backups
...
On contrary from a backup created in 2.0, the file gradebook.xml in the
converted MBZ can contain the course grade_item without the
corresponding grade_category record which is something restore_stepslib
did not expect. This patch fixes two places:
1) the gradebook restore does not use mapped itemid but calls
grade_category::fetch_course_category() to get the actual category to
link the course_item with
2) after_execute makes sure that the mapping actually exists before
trying to move the activities from the default root category
2011-06-30 22:40:54 +02:00
sam marshall
c02b60bccc
MDL-28116 Fix issue restoring old backups with duplicate completion rows
2011-06-30 17:33:12 +01:00
David Mudrak
3343677e0a
MDL-28006 Fixed grades subpath handling
...
Registering the grades subpath even if we do not process the grades yet.
This is to prevent from incorrect considering the wrapper as an empty tag.
2011-06-30 15:17:03 +02:00
Sam Hemelryk
54ae8ed032
Merge branch 'MDL-24684_master' of git://github.com/stronk7/moodle
2011-06-30 10:49:29 +08:00
Eloy Lafuente (stronk7)
b7a45fa782
MDL-24684 backup - basic protection against time/memory limits
2011-06-30 03:37:30 +02:00
Eloy Lafuente (stronk7)
f0548d18bf
Merge branch 'MDL-28035' of git://github.com/timhunt/moodle
2011-06-29 20:47:16 +02:00
Eloy Lafuente (stronk7)
fae9cd077c
Merge branch 'MDL-28037' of git://github.com/timhunt/moodle
2011-06-29 20:44:49 +02:00
Sam Hemelryk
7bbf41661b
MDL-27988 backup grade: Calculated grade items calculation references now corrected and idnumber restore improved
2011-06-29 15:26:48 +08:00
David Mudrak
af66e7fea3
MDL-28006 code cleanup - there is nothing to do for grade_settings
2011-06-29 09:08:25 +02:00
David Mudrak
ddefec8d14
MDL-28006 moodle1 converter supports outcomes
2011-06-29 08:55:43 +02:00
David Mudrak
d98100e407
MDL-28006 moodle1 converter supports grade letters
2011-06-29 01:06:59 +02:00
David Mudrak
cfab209904
MDL-28006 moodle1 converter supports grade categories and non-module grade items
2011-06-29 01:06:10 +02:00
David Mudrak
544e0d5972
MDL-28006 moodle1 converter supports activity module grade items
2011-06-29 00:11:05 +02:00
David Mudrak
acc9a7b9e2
MDL-28006 moodle1 converter provides new get_stash_or_default() method
2011-06-29 00:11:05 +02:00
David Mudrak
477f1d2b78
MDLQA-1147 Fixed a typo in the exception class name
...
Thanks Steve Turley for spotting and reporting this during the QA.
2011-06-29 00:10:59 +02:00
Tim Hunt
50de6ad083
MDL-28037 Make restoring quiz_attempts more robust.
...
Don't assume that 0 is unique (even temporarily).
2011-06-27 18:27:12 +01:00
Tim Hunt
0366ef262a
MDL-28035 problems with upgrade/restore of ataptive quizzes from 2.0
...
There were two main problems:
1. The unit tests for upgrading adaptive quiz attempts had slighly the
wrong $expectedqa, and so matching that the upgrade was doing the wrong
thing in certain situations. The main issue was that it was setting
-_try = 1 on the first step, which broke the penalty calculation when
the quiz was regraded. There were also some other subtleties with
incrementing -_try that were not right before.
2. It was possible in 2.0 and earlier for two question_states to get the
same seq_number, and restoring 2.0 backups was rashly assuming that that
was unique.
2011-06-27 17:10:02 +01:00
Eloy Lafuente (stronk7)
f1231efec4
MDL-28038 backup - bump
2011-06-26 19:15:06 +02:00
Eloy Lafuente (stronk7)
beae4a6684
MDL-25811 automated backups - clean running status after 90 mins of inactivity
2011-06-21 02:41:12 +02:00
Eloy Lafuente (stronk7)
8edbfba909
Merge branch 'MDL-24594_wip' of git://github.com/timhunt/moodle
2011-06-20 12:48:55 +02:00
Tim Hunt
f263d4935f
MDL-27913 Stray whitespace in backup.
2011-06-17 19:37:20 +01:00
ppichet
2a6c5c52ee
MDL-24594 qtype_multichoice should allow images in the choices.
...
This change was massively re-worked by Tim Hunt to update Pierre Pichet's original patch for Moodle 2.0 to work in Moodle 2.1.
2011-06-17 18:41:13 +01:00
Eloy Lafuente (stronk7)
28e23ea737
fix permissions
2011-06-16 19:06:07 +02:00
Eloy Lafuente (stronk7)
a16e137f21
Merge branch 'MDL-27639_wip' of git://github.com/timhunt/moodle
2011-06-15 01:30:59 +02:00
Eloy Lafuente (stronk7)
ee1235e7af
Merge branch 'backup-convert' of git://github.com/mudrd8mz/moodle
2011-06-14 22:38:27 +02:00
Tim Hunt
98a3898efc
MDL-27849 fix qtype_multianswer attempt data restore (2.1 -> 2.1).
...
Also, refactor calculatedmulti restore to avoid duplication.
2011-06-14 15:17:50 +01:00
Tim Hunt
18ab06bac5
MDL-27639 restore of attempt data from 2.0 - first attempt.
...
This is now at the stage where it mostly appears to work, at lease on
one backup file.
2011-06-14 12:11:19 +01:00