Dan Poltawski
2c08b71880
Merge branch 'MDL-56136_31' of git://github.com/timhunt/moodle into MOODLE_31_STABLE
2016-10-25 20:44:37 +01:00
Michael Aherne
7e47b00c34
MDL-56319 blocks: Observe empty default blocks setting
2016-10-10 09:52:47 +01:00
Tim Hunt
493f5d4851
MDL-56136 restore: better error handling copying file at start
2016-09-27 18:10:07 +01:00
Marina Glancy
9135f6347e
MDL-55864 general: fix PHP7.1 strict warnings
2016-09-13 15:24:34 +01:00
Eloy Lafuente (stronk7)
2a681ccd06
Merge branch 'MDL-55618-m31' of https://github.com/NeillM/moodle into MOODLE_31_STABLE
2016-09-06 16:20:41 +02:00
Neill Magill
6130c2493f
MDL-55617 backup: Possible fatal errors in backup and restore
...
The unserialize() function will not always return an object
especially when as can happen the controller field of a
record in the backup_controllers table is empty.
This change ensures that in this case the script will
not cause a fatal error, but instead throw an error.
2016-09-01 08:47:51 +01:00
Neill Magill
68cbd916a6
MDL-55618 backup: Header should not be output twice
...
Before this patch if the pre-check failed during
the final stage of an import a request for the
page header to be output was made for a second
time, this caused a coding_error to occur.
This change removes the second request to
output the page header, which will allow the user
to see the reasons the pre-check failed.
2016-09-01 08:46:32 +01:00
Jake Dallimore
4f424b7b0c
MDL-55565 core_backup: Fix warning when restoring question categories
...
Fixed a call to get_records_sql, which was being used incorrectly in
restore_find_best_target_context to determine a unique contextid.
2016-08-22 14:23:18 +01:00
Cameron Ball
bd7cc14d6a
MDL-54771 restore: Add deletesource to course object
...
Since deleting a course now triggers the pre_course_delete hook
it may be useful for hook implementations to know whether it was
a "true" course deletion, or one originating from a temporary
course created during a restore.
2016-07-06 23:19:00 +08:00
Eloy Lafuente (stronk7)
aa6fa3a56e
Merge branch 'MDL-54769-31' of git://github.com/marinaglancy/moodle into MOODLE_31_STABLE
2016-06-06 23:56:51 +02:00
Marina Glancy
88ed1fab62
MDL-54769 backup: add missing error language string
2016-06-01 09:45:42 +08:00
Andrew Nicols
87e2b6154c
MDL-54567 backup: Fixtures for legacy grade value rewrite
2016-05-30 13:34:04 +08:00
Frederic Massart
c2235a04bf
MDL-54567 backup: Process the calculations_freeze item upon restore
2016-05-30 13:34:04 +08:00
Eloy Lafuente (stronk7)
1abca11e0a
MDL-54638 versions: bump all versions and requires near release
...
version = 2016052300 release version
requires= 2016051900 current rc1 version
2016-05-19 02:16:15 +02:00
Adrian Greeve
41abbbbde5
MDL-45390 gradebook: sql tidy up and version alignment.
2016-05-18 10:41:30 +08:00
Adrian Greeve
405b90bcd2
MDL-45390 gradebook: Grade boundary fix.
...
Code to upgrade, fix, and freeze the gradebook for
courses with letter boundary problems.
2016-05-18 09:56:00 +08:00
Eloy Lafuente (stronk7)
07a069f1c0
MDL-50063 unittests: Remove some unnecesary gc_collect_cycles()
...
Now backup and restore operations free logger resources calling
to the destroy() method. This commit ensures:
1) That gc_collect_cycles() is not used anymore in backup-related tests.
2) That all backup and restore controllers in test do always call
to the detroy() method.
3) Some unset() calls, needed to make gc_collect_cycles() are not used
anymore.
2016-05-13 02:50:45 +02:00
Eloy Lafuente (stronk7)
fcd3bbfee0
MDL-54205 tests: verify destroy() and close() behavior
2016-05-13 01:54:37 +02:00
Eloy Lafuente (stronk7)
53f95c99cb
MDL-54205 backup: loggers close() and destroy()
...
Any backup & restore operation may be leaving opened files
if a file logger is being used. This implementes the close()
method, so every logger can close any resource.
Also, the recommended backup_controlled::destroy() method
now calls to new logger::destroy() method in charge of
deleting all the references and closing any resource.
Finally, some internally used controllers, were missing
their destroy call, leading to associated loggers to
remain open. Now all them are explicitly deltroyed.
2016-05-13 01:54:28 +02:00
Jun Pataleta
45b9207d7e
MDL-53974 backup: Add option to backup course competencies
2016-05-06 09:27:31 +08:00
Frederic Massart
68bf1ff4b3
MDL-51369 backup: Respect capabilities when restoring course info
...
In short, when a user is creating a new course they can set
the ID number, shortname, fullname and summary. However, when
they merge a backup into a course they need the permissions to do so.
2016-05-06 09:27:26 +08:00
Frederic Massart
56e1d9bada
MDL-53716 competency: Do not restore competencies when disabled
2016-04-28 18:41:30 +08:00
Frederic Massart
e9114a9ed4
MDL-53716 competency: Backup and restore course competency user data
2016-04-28 18:41:30 +08:00
Frederic Massart
8417c3a620
MDL-53700 competency: Migrating backup logic to core
2016-04-18 11:05:59 +08:00
Frederic Massart
a495d1a18b
MDL-51858 backup: Support admin tools in course and module backups
2016-04-18 10:58:44 +08:00
Rajesh Taneja
921faad9ad
MDL-53571 behat: Use Escaper for escaping
...
xpathLiteral has been depreacted, use Escaper instead
2016-04-06 15:38:31 +08:00
Andrew Nicols
82bb931a31
MDL-53115 backup: Remove unnecessary @javascript tags
2016-04-04 08:08:43 +08:00
Rajesh Taneja
42ad096fdb
MDL-46891 Behat: Added support for behat 3
2016-03-11 10:51:15 +08:00
Nadav Kavalerchik
dffcf46f43
MDL-52252 Tags: Add tags to modules (Resources and Activities)
2016-03-09 14:19:47 +08:00
Rajesh Taneja
788beb6705
MDL-53126 behat: Fixed radio button in backup step
...
Rather than calling click and check on radio node
use radio form field to set value
2016-02-25 10:33:17 +08:00
Mark Nelson
d14ba3a2f4
MDL-52940 core_backup: prevent always displaying logs
2016-02-01 12:43:53 +08:00
Andrew Nicols
223c4add23
Merge branch 'MDL-50268-master' of git://github.com/lameze/moodle
2016-01-19 07:56:41 +08:00
Simey Lameze
11d4bea28b
MDL-50268 core: proper deprecation of get_file_url() method
2016-01-18 13:44:22 +08:00
Dan Poltawski
04a03ff282
Merge branch 'wip-MDL-50851-master' of git://github.com/marinaglancy/moodle
2016-01-12 14:17:14 +00:00
Cameron Ball
088d6086d8
MDL-21912 restore: Add admin setting to restore conflicting admin user
2016-01-11 14:08:58 +08:00
Marina Glancy
c4e868d5f0
MDL-50851 user: use new tag API for interests
2016-01-10 15:25:47 +08:00
Marina Glancy
b355a1c97c
MDL-50851 core_question: use new tag API
2016-01-10 15:25:47 +08:00
Marina Glancy
74fa9f76dc
MDL-50851 course: use new tag API
2016-01-10 15:25:47 +08:00
Dan Poltawski
77d0aaa5e3
Merge branch 'MDL-52402' of git://github.com/mr-russ/moodle
2015-12-21 12:46:20 +00:00
David Monllao
58920c8e53
Merge branch 'MDL-52523' of git://github.com/timhunt/moodle
2015-12-21 10:47:49 +08:00
Tim Hunt
8eef9244be
MDL-52523 backup of subplugins: add missing global
2015-12-15 15:57:23 +00:00
David Monllao
9e313e798f
MDL-51784 general: Adding missing php4 style constructors
...
Adding them to warn people calling the php4 constructor.
2015-12-11 14:02:42 +08:00
Marina Glancy
c4d0b752a2
MDL-51784 various: use __construct() for PHP7 compatibility
2015-12-11 12:48:24 +08:00
Marina Glancy
1766e6a17f
MDL-52284 core: PHP7 engine errors have type Throwable
2015-12-10 10:49:37 +08:00
Tony Levi
d74b7e424f
MDL-52284 core: compatibility with Exception/Throwable changes in PHP7
2015-12-10 10:49:36 +08:00
Russell Smith
eb8c0cb163
MDL-52402 backup: Improve debugging output on failed log restores
2015-12-05 10:08:06 +11:00
Eloy Lafuente (stronk7)
8827b67aeb
MDL-52141 backup: test restore_log_rule don't modify passed log anymore
2015-12-03 18:52:26 +01:00
David Monllao
200ab5266a
Merge branch 'MDL-50269_master' of git://github.com/markn86/moodle
...
Conflicts:
lib/upgrade.txt
2015-12-03 18:51:42 +01:00
Russell Smith
a8137ec25f
MDL-52141 backup: Ensure we don't alter the log record when parsing it.
2015-12-03 11:11:07 +01:00
Ankit Agarwal
c917b53a8d
MDL-50269 deprecations: Properly deprecate notify()
2015-12-01 15:29:33 +08:00