Damyon Wiese
031cf251c1
MDL-64878 grades: Rebuild cache on import
...
When the course module cache is out of date during a gradebook re-calculcation it throws
throws exceptions because the module cannot be found. This prevents access to gradebook or
any type of grading functions until the cache is rebuilt.
When the cache still has no module record we log an error and return the course context.
2019-02-27 10:37:31 +08:00
Marina Glancy
d1fc4bdc1e
MDL-57898 core_customfield: strings and other minor fixes
2019-01-18 14:28:24 +01:00
Daniel Neis Araujo
5af9aa6341
MDL-57898 core_course: backup/restore support for course custom fields
...
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:24 +01:00
Sara Arjona
32c863f276
Merge branch 'MDL-63916-master' of git://github.com/damyon/moodle
2019-01-16 15:33:08 +01:00
Damyon Wiese
c85be29355
MDL-63916 backup: Do not display timestamp
...
Convert the date+time field to a userdate for display.
2018-12-12 12:18:32 +08:00
Tim Hunt
2fbd8e9ec0
MDL-63260 qtype_random: orphaned random questions should be deleted
...
This fix is based on some original code written by Bo Pierce.
2018-12-11 13:59:13 +00:00
Jun Pataleta
e96eb02e46
Merge branch 'master-MDL-64290-imscc-restore-temp-dir' of https://github.com/mspall/moodle
2018-12-06 08:57:32 +08:00
Michael Spall
f1a22c4a1b
MDL-64290 backup imscc: Use correct tempdir for imscc restore
...
Use configured temp directory $CFG->tempdir instead of hard coded
$CFG->dataroot . '/temp/backup/'
Remove unused variable, $CFG
2018-12-05 10:44:14 -07:00
Eloy Lafuente (stronk7)
5471eb1758
MDL-64299 backup: Bump release to 3.7
2018-12-02 18:21:52 +01:00
Eloy Lafuente (stronk7)
085353b315
MDL-64282 versions: bump all versions and requires near release
...
version = 2018120300 release version
requires= 2018112800 current rc2 (week7roll1) version
2018-11-29 18:24:08 +01:00
Damyon Wiese
dcb35b721c
MDL-63920 backup: Email string improvement
...
Change from semicolon to colon in email.
2018-11-20 16:14:35 +08:00
Andrew Nicols
2986a99153
MDL-63596 backup: Add missing include
2018-11-10 10:46:38 +08:00
Damyon Wiese
f1f7d45bc7
MDL-63596 backup: Deal with controller types
...
For privacy requests, deal with all 3 controller types.
2018-11-09 17:55:23 +08:00
Mihail Geshoski
fc9bde4bc3
MDL-63596 core_backup: Add support for removal of context users
...
This issue is part of the MDL-62560 Epic.
2018-11-09 16:09:22 +08:00
Mark Nelson
80b6fb7a79
MDL-27520 core_grades: make constant names clearer
...
Also using them in more locations.
2018-10-17 15:57:27 +08:00
Damyon Wiese
dd882ba035
MDL-27520 backup: Backup for feedback files
2018-10-17 13:15:49 +08:00
John Beedell
6189fda47f
MDL-62708 question: Add idnumbers to question and question category
2018-09-21 12:26:24 +01:00
Rohan Khajuria
e372389251
MDL-59227 course: add (copy) to duplicated modules
2018-09-17 15:14:12 -07:00
Víctor Déniz Falcón
02fda279ed
MDL-57281 behat: deprecated step definition I navigate to node in
...
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00
Eloy Lafuente (stronk7)
b76d8da4a6
Merge branch 'MDL-62581-master' of git://github.com/damyon/moodle
2018-08-09 00:09:12 +02:00
Eloy Lafuente (stronk7)
6760a7e3e9
Merge branch 'MDL-43334-master' of git://github.com/damyon/moodle
2018-08-08 00:11:16 +02:00
Jun Pataleta
1d4eecffc6
Merge branch 'MDL-62950-master' of git://github.com/andrewnicols/moodle
2018-07-27 16:19:22 +08:00
Andrew Nicols
3f068cf381
MDL-62950 behat: Disable editing for boost test
2018-07-27 10:05:17 +08:00
Damyon Wiese
2660e38faf
MDL-62581 backup: CSS fixes
...
Sanitise the CSS for backup and restore. Main fixes are to sanitise the form-inline styles and set a fixed
width for the search forms within the restore form.
2018-07-23 16:19:30 +08:00
Shamim Rezaie
30dd3c5d0f
MDL-62897 restore: Fix component name in get_string()
2018-07-23 14:37:40 +10:00
Andrew Nicols
bfeef10af0
Merge branch 'MDL-45851' of git://github.com/timhunt/moodle
2018-07-16 13:10:24 +08:00
Andrew Hancox
820f28c61b
MDL-61578 backup: Added unit test for is_course_modified check.
2018-07-10 10:50:30 +08:00
Michael Hawkins
4b9c2928d4
MDL-61578 backup: Prevent backup logging triggering fresh backups.
...
Thanks to Renaat Debleu for their contribution to this solution.
2018-07-10 10:50:30 +08:00
Damyon Wiese
6fea9dc4b3
MDL-43334 backup: Fix cancel JS
...
The cancel button is a form element within a div that has the confirmcancel class. When we
accept a cancel modal, we should attempt to click the most specific form element of the
div, not the entire div.
2018-07-09 12:17:23 +08:00
Damyon Wiese
ddd7ff1827
MDL-43334 backup: Lanuage for cancel
...
Cancel backup buttons need clear lang strings.
2018-07-09 12:17:18 +08:00
Tim Hunt
3511063252
MDL-45851 restore: random questions must always be created
...
They are really a pointer from a particular quiz to a question category.
They should never be shared, because if they are, unexpected things
happend when they are edited.
2018-07-04 16:33:30 +01:00
Michael Hawkins
ef4e04ee26
MDL-37624 calendar: Added location support
2018-06-29 10:46:54 +08:00
David Monllao
fca5c2de05
Merge branch 'MDL-58702-master' of git://github.com/zig-moodle/moodle
2018-06-19 11:53:21 +02:00
Damyon Wiese
c957707106
MDL-60950 assign: Rename class
...
testable_assign was renamed to mod_assign_testable_assign
2018-06-19 10:53:51 +08:00
Zig Tan
e689e4d446
MDL-58702 backup: Fix restoration of role mappings labels
...
Changes:
- Add logic to retrieve all the existing current roles.
- Apply the backup's role shortname by matching on the archetype.
- Added backup lang string 'undefinedrolemapping'.
2018-06-15 09:55:53 +08:00
Mark Nelson
0c34cc5a93
MDL-31443 core_backup: change review heading to 'Restore settings'
2018-06-13 17:49:38 +02:00
Luca Bösch
2e8491a5be
MDL-31443 core_backup: revert changes to util/ui/renderer.php
2018-06-13 17:49:38 +02:00
Luca Bösch
f55b45e473
MDL-31443 backup: Title and cancel messages stating import and restore
2018-06-08 11:35:02 +02:00
Eloy Lafuente (stronk7)
5798aee926
MDL-62477 backup: Bump release to 3.6
2018-05-17 01:53:43 +02:00
Andrew Nicols
7831f2785d
Merge branch 'MDL-62428_master' of git://github.com/markn86/moodle
2018-05-15 10:58:45 +08:00
Mark Nelson
8e24041287
MDL-62428 core: fix incorrect early return in privacy providers
2018-05-14 13:06:29 +08:00
Eloy Lafuente (stronk7)
28ec28e026
Merge branch 'MDL-62251-master' of git://github.com/rezaies/moodle
2018-05-13 20:10:44 +02:00
Shamim Rezaie
f181a24a0b
MDL-62251 backup: Fix replace_tempdir() bug under Windows
...
rename() fails under Windows if the destination file/directory exists.
I modified the code to only call $this->get_workdir_path() once as that function
creates the directory if doesn't exist. And we don't want that considering the
behaviour of rename on Windows.
2018-05-10 18:16:09 +10:00
David Monllao
a83b43a118
Merge branch 'MDL-62308_master' of git://github.com/markn86/moodle
2018-05-10 09:17:30 +08:00
Mark Nelson
0f41e8a2a1
MDL-62308 core_backup: implement privacy provider
...
The provider was added to 'backup/util/ui/' due to
Moodle's implementation of autoclass loading. See
fetch_subsystems() in lib/classes/component.php.
2018-05-09 22:48:07 +08:00
Eloy Lafuente (stronk7)
57ea6753d3
MDL-62361 versions: bump all versions and requires near release
...
version = 2018051400 release version
requires= 2018050800 current beta+ (week4roll1) version
2018-05-09 02:46:30 +02:00
Andrew Nicols
6979cf56e2
Merge branch 'MDL-56511-master' of git://github.com/andrewnicols/moodle
2018-04-18 09:35:29 +08:00
Bas Brands
3ec69c2ece
MDL-56511 theme_boost: Update to Bootstrap 4 stable
...
Behat fixes by David Monllao <davidm@moodle.com>
- Blocks
- Modals
- Messaging styling
- Breadcrumb
- Pagination
- Course & categories management
2018-04-18 09:31:53 +08:00
Matteo Scaramuccia
ef844148a9
MDL-60923 backup: Added $CFG->backuptempdir
...
The new setting will allow to host the temporary backup files
into a specific target directory. Defaults to '$CFG->tempdir/backup'.
Calling make_backup_temp_directory() checks that the required sub-directory
will be properly created under the new target directory.
2018-04-16 23:50:28 +02:00
Eric Merrill
815c44ce07
MDL-61913 restore: Protect against blocks that aren't being created
2018-04-11 00:50:27 +02:00