375 Commits

Author SHA1 Message Date
Sam Hemelryk
cb0a069019 Merge branch 'MDL-27764' of git://github.com/stronk7/moodle 2012-03-06 10:19:28 +13:00
Eloy Lafuente (stronk7)
b904130b5b MDL-27764 restore - always restore as much info as possible (1.9 approach)
In 2.0 we had reduced the types of restore operations where we allow
to load the section names and section descriptions, only proceeding
when restoring to new course or to existing course, deleting.

With this patch, we change to the old 1.9 way, that was to restore
the section information always, no matter of the type of restore
operation (course restore, import, to new or to existing course,
deleting or adding). The only exception is that it's always checked that
the target section names and descriptions are empty.
2012-03-05 02:41:33 +01:00
Eloy Lafuente (stronk7)
ac6dc09c26 MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea 2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7)
38a9c86fcb MDL-30982 fix one incorrect defined() 2012-02-29 02:41:17 +01:00
David Mudrak
c1d4413e20 MDL-30982 Fixing invalid @example tag usage 2012-02-27 12:06:24 +01:00
David Mudrak
a75af402af MDL-30982 Activity module stepslib - API documentation 2012-02-27 11:59:43 +01:00
David Mudrak
85aad2ef97 MDL-30982 Documenting some parts of backup settings machinery 2012-02-27 11:59:43 +01:00
David Mudrak
f9dab4bed2 MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
David Mudrak
58b322cfd2 MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
David Mudrak
cfab878c5d MDL-30982 Improving phpDocs for the class backup_activity_task 2012-02-27 11:59:42 +01:00
Eloy Lafuente (stronk7)
f4319f8531 Merge branch 'wip-mdl-25432' of git://github.com/rajeshtaneja/moodle 2012-02-21 02:10:10 +01:00
Rajesh Taneja
5f1f726e68 MDL-25432 backup: Catching exception for orphan course modules and it's block (if any), and logging them, no exception will be thrown for this now. 2012-02-20 09:28:55 +08:00
Eloy Lafuente (stronk7)
ee1dc83574 MDL-31532 restore: avoid null course->hiddensections problems. Credit goes to Petri Asikainen. Thanks! 2012-02-20 01:34:25 +01:00
Tim Hunt
a60835c721 MDL-31314 gradebook restore: fix category.depth on restore.
Without this, restoring backups made with the OU's custom 'restore from
1.9' feature, and possibly other people's custom converstion code, does
not work properly.

Also, fix poor recordset code.
2012-01-30 12:31:43 +00:00
Eloy Lafuente (stronk7)
4d856332e4 MDL-28180 backup - on restore always prevent completion_aggr_methd dupes
This covers the last case where dupes could be happening in the
completion_aggr_methd table: Restoring one complete course into
an existing one, adding information. Now we always check if the
aggr_method exists before inserting it.
2011-12-12 00:31:44 +01:00
Eloy Lafuente (stronk7)
5b14551371 MDL-30466 Backup: delete empty method 2011-11-29 19:47:25 +01:00
Rajesh Taneja
3c33d77817 MDL-30466 Backup: Fixed duplicate completion record check error 2011-11-28 14:12:41 +08:00
Eloy Lafuente (stronk7)
66d8f36b9e Merge branch 'MDL-30456' of git://github.com/stronk7/moodle 2011-11-25 03:22:09 +01:00
Eloy Lafuente (stronk7)
ef77af3852 MDL-30456 backup - avoid missing deleted users on backup 2011-11-25 03:16:53 +01:00
Eloy Lafuente (stronk7)
ede7105fd9 MDL-27233 move the restorer enrol/ra creation to the very beginning of the restore process
Some early steps in restore are using capability checks to decide how to
restore some information. But at that stage, if the course contents have
been removed and the user had perms at course level only (usually teacher)
the process can fail because some content is not restoreable due to the
lack of permissions.

Moving the restorer step to the beginning really helps is those situations
and it does not hurt at all.

Also, fixed one notice detected when testing this.
2011-11-25 01:07:27 +01:00
Eloy Lafuente (stronk7)
0620787a17 Merge branch 'w47_MDL-27233_m22_restoreenrol' of git://github.com/skodak/moodle 2011-11-24 23:44:24 +01:00
Petr Skoda
1f238ad4df MDL-27233 fix variable names
Thanks Eloy!
2011-11-24 10:40:38 +01:00
Petr Skoda
73d000f389 MDL-27233 allow adding of default role to restorers 2011-11-23 18:38:27 +01:00
Petr Skoda
d53e3298c0 MDL-27233 add new options to keep enrols and groups purging existing course in restore 2011-11-23 18:38:27 +01:00
David Mudrak
086ed2a6c0 MDL-30390 Advanced grading - fixed the database table field name in the restore
This is a regression of the recent fields renaming.
2011-11-22 15:50:17 +01:00
Eloy Lafuente (stronk7)
f218cdab34 Merge branch 'MDL-29591-master-2' of git://git.luns.net.uk/moodle 2011-11-18 17:28:53 +01:00
Andrew Robert Nicols
7d7d82de03 MDL-29591 Check for permission before overwriting course idnumber when restoring 2011-11-18 14:54:00 +00:00
Henning Bostelmann
6336bd914a MDL-29350 Prevent duplication of groupings when copying activities
This patch also includes a database upgrade to correct data produced as a
result of this bug.
2011-11-15 11:12:40 +00:00
Eloy Lafuente (stronk7)
acb8164304 MDL-29956 ims-cc - disabling export and cleaning some unused code
This commits cleans some code (settings and dependencies)
and one file included previous by error.

Also it disables all the IMS-CC export feature by default, being
possible to enable it under demand by setting (@ config.php):

$CFG->enablebackupconverters = true;
2011-11-14 21:32:05 +01:00
Mark Nielsen
42dffc6feb MDL-29956: Implement common cartridge export (r16882) 2011-11-14 21:25:08 +01:00
David Mudrak
3319af85a9 MDL-29793 Advanced grading - do not execute the restore step if the grading.xml is missing 2011-11-14 21:11:41 +01:00
David Mudrak
c309e4f05e MDL-29793 Advanced grading backup - fixed the recently renamed DB field 2011-11-14 21:11:00 +01:00
Sam Hemelryk
1ae9aa2b8f Merged MDL-29108 Advanced grading 2011-11-14 22:01:05 +13:00
David Mudrak
37065c2e06 MDL-29793 Advanced grading forms attached to activity modules can be restored now 2011-11-08 23:33:40 +01:00
David Mudrak
9b553d472e MDL-29793 Advanced grading forms attached to activity modules are included in the backup now 2011-11-08 16:25:58 +01:00
Petr Skoda
158e9e2af9 MDL-29030 add basic report backup/restore support for course level 2011-11-06 12:22:51 +01:00
Eloy Lafuente (stronk7)
f253e791ed MDL-29618 backup - back to handling enrolments properly. Regession of MDL-26841, my fault, grrr 2011-10-03 00:45:18 +02:00
Eloy Lafuente (stronk7)
9ab5df6b8b MDL-26841 backup - prevent any enrolments info to be handled in IMPORT/HUB operations 2011-09-19 11:21:43 +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
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
Tim Hunt
ad858cd428 MDL-28369 Question hints not being restored. 2011-07-25 10:05:13 +01: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)
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
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