Commit graph

206 commits

Author SHA1 Message Date
meirzamoodle
c26cc0e005 MDL-83172 dml: Remove Oracle from LMS 2025-01-13 17:11:55 +07:00
Paul Holden
466f6e88b5
MDL-63264 enrol: retrieve additional welcome message contact data.
The `maildisplay` field is required to determine from whom to send
the welcome message.

Co-authored-by: Zak Risha <zjrisha@gmail.com>
2024-11-22 16:17:39 +00:00
Paul Holden
807148fb68
MDL-83432 enrol_manual: reference correct role in welcome message. 2024-10-18 15:12:34 +01:00
Paul Holden
8c01166725
MDL-83443 enrol: use defined role name in welcome message. 2024-10-11 14:29:53 +01:00
Andrew Nicols
024e36be17
MDL-81634 core: Fix all implicitly defined nullables
Note: This does not impact third-party libraries.
2024-08-02 14:11:12 +08:00
meirzamoodle
699daafc64 MDL-64148 core: Make email greetings consistent
Some email body strings use first names as greetings,
some use full names, and some do not.

Using the first name for greeting makes it consistent and
a bit more "personal".
2024-07-30 22:40:47 +07:00
Paul Holden
1acdc7fe82
MDL-81678 enrol: don't escape course name in welcome message. 2024-06-07 11:39:38 +01:00
Ilya Tregubov
4b16c37b96 MDL-80599 core: Refactor enrol methods
Move update instance logic to its own method and cover with tests.
Also update enrol plugins to work woth new methods.
2024-05-14 12:08:46 +08:00
Jun Pataleta
9966241efb
Merge branch 'MDL-81525-main' of https://github.com/andrewnicols/moodle 2024-04-17 23:42:22 +08:00
Andrew Nicols
a7aedc7c2f
MDL-81525 core_enrol: Correct hook name tense 2024-04-15 13:05:09 +08:00
Marina Glancy
ef1759da74 MDL-80820 various: fix incorrect phpdocs 2024-04-08 10:13:10 +01:00
Huong Nguyen
b6af21bec0
MDL-4188 enrol_manual: Send course welcome message on enrolment
AMOS BEGIN
  CPY [customwelcomemessage,enrol_self],[customwelcomemessage,core_enrol]
  CPY [customwelcomemessage_help,enrol_self],[customwelcomemessage_help,core_enrol]
AMOS END
2024-04-04 20:13:46 +07:00
Huong Nguyen
f53b0b84d2
MDL-4188 core_enrol: Added enrol_plugin::get_welcome_message_contact()
Including in this commit
 - enrol_self_plugin::get_welcome_email_contact() has been deprecated
2024-04-04 19:45:17 +07:00
Ilya Tregubov
6f41a2fbfd MDL-81365 enrol: Fix wrong validation. 2024-03-27 15:42:20 +08:00
Jun Pataleta
35dcf18395
Merge branch 'MDL-80875-main' of https://github.com/sarjona/moodle 2024-03-26 12:05:40 +08:00
Safat
968897b653 MDL-78551 core_enrol: Add support for hooks api 2024-03-26 13:53:39 +11:00
Sara Arjona
2fecfa597b
MDL-80875 uploadcourse: Fix params validation 2024-03-25 08:09:19 +01:00
Jun Pataleta
3278ce7aba
Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
Víctor Déniz Falcón
14cd15dfab MDL-46886 core_enrol: unenrolment due to inactivity notification 2024-02-29 10:11:35 +07:00
Eloy Lafuente (stronk7)
ba1f804ffa
MDL-65292 style: Fix all function declarations white space
This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing

All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.

Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
2024-02-28 23:33:26 +01:00
David Woloszyn
4807a4dd5f MDL-43056 tool_uploadcourse: Add capability to upload courses from file
An entrypoint capability has been added that allows accessing the
upload tool. Further relevant capability checks are then performed
depending on the action being taken during the upload process.

Co-authored-by: Marina Glancy <marina@moodle.com>
2024-01-31 11:29:33 +11:00
Stephan Robotta
dd07c7c042 MDL-41465 reports: In separate group mode, limit to same 2023-12-06 13:53:28 +07:00
Sara Arjona
5f03727ce7
Merge branch 'MDL-43820-master' of https://github.com/ilyatregubov/moodle 2023-10-30 10:24:10 +01:00
Ilya Tregubov
bf7ff76bcd
MDL-43820 enrol: Add method to find plugin enrol instance
When upload courses we need to match instance with provided data.
2023-10-26 14:27:02 +08:00
Paul Holden
39c7a685b1
MDL-79767 communication: correct arguments when loading instance. 2023-10-18 22:37:03 +01:00
Andrew Nicols
99c1543aa8
MDL-79581 communication: Context is a mandatory field
The API was incorrectly assuming that all uses of the API were for a
course, and that the instanceid of the communication instance was a
course id. These assumptions are both entirely wrong.

The API is intended to support a range of uses including use at the
site, user, and activity levels.

Furthermore, if a group were to be used, then the instanceid should be
of that group's id, and therefore the contextid would need to be fetched
or that group's course instead.

The only solution here is to add a new contextid field to the table, and
implement it all parts of the API.
2023-10-04 20:37:57 +08:00
Ilya Tregubov
5dc60d9f94
MDL-78855 tool_uploadcourse: Create instance only if plugin supports it 2023-08-29 11:14:04 +08:00
Ilya Tregubov
fb4304b075
MDL-73839 tool_uploadcourse: Enable cohort enrolment for course upload. 2023-06-30 11:57:49 +08:00
Ferran Recio
0ad8fd077c MDL-78175 course: move role renaming to participants 2023-05-29 09:25:18 +02:00
David Woloszyn
86ab66e60a MDL-77576 core_enrol: Implement communication api
This commit implementes the communication api for
enrolment changes for a user, or enrolment method
and triggers the communication api update.

Originally implemented MDL-76703.

Co-authored-by: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Marina Glancy
8fc1486d36 MDL-77164 various: fix incorrect phpdocs 2023-04-13 11:35:06 +01:00
David Woloszyn
694b3ef878 MDL-77145 enrol: Removed course shortname from unenrolme string 2023-02-10 11:10:15 +11:00
Sara Arjona
dd83fb0bba Merge branch 'MDL-75441-master' of https://github.com/aanabit/moodle 2022-12-14 09:57:03 +01:00
Amaia Anabitarte
31d84aaa2c MDL-75441 mod_forum: Show add new post button to guest users 2022-12-13 18:49:53 +01:00
Andrew Nicols
3218a8feda Merge branch 'MDL-76536' of https://github.com/paulholden/moodle 2022-12-13 11:38:06 +08:00
Rex Lorenzo
ebeaa4b3f2 MDL-71261 mod_quiz: Quiz user override should only get enrolled users
Also update similar code in mod_assign to use the improved APIs.

Co-Authored-By: Tim Hunt <T.J.Hunt@open.ac.uk>
2022-12-12 12:29:19 +00:00
Paul Holden
7bab1754c4 MDL-76536 enrol: prevent invalid role assignments in course creation.
Upgrade step to fixup existing bad data.
2022-12-09 11:38:41 +00:00
Stefan Hanauska
d602d936ac MDL-76330 enrol: Check permission to show edit icon 2022-12-01 20:07:15 +01:00
Eloy Lafuente (stronk7)
ca7890f2fc MDL-75208 oracle: Amend a couple of queries to make Oracle happy
The changes introduced here are completely safe, just we stop
binding SITEID and, instead, embed it in the SQL.

Why? Because Oracle 21 has started to return non-sense results
when SITEID is bound.

After lots of tests, attempts, debugging... we have been unable
to find any logic to the need of this change and also, have been
unable to reproduce the problem with a standalone script that
pretty much runs the same queries that the ones changed here.

I'm sure that there is something, somewhere, but have failed
to find it, grrr.

Please read MDL-75208 and linked issues to find more information
about this problem, that is one of the biggest mysteries I've
seen recently. Maybe at the end there is a tiny detail that
explains it all, but it's really well hidden.
2022-07-19 09:48:33 +02:00
Dmitrii Metelkin
a6cad23b1a MDL-73431 enrol: Introduce a sync interval 2022-05-30 15:58:22 +10:00
Simey Lameze
37bf03b2f4 MDL-73914 course: move both options to more menu
This commit moves the 'Download course content' and 'Unenrol me from course'
options to more menu.
2022-03-22 10:03:29 +08:00
Ilya Tregubov
638c8c452c Merge branch 'MDL-72875-master-v2' of https://github.com/peterRd/moodle 2021-12-03 14:29:59 +02:00
Peter Dias
e0d7dbd022 MDL-72875 course: Introduce tertiary nav in participants
- Introduce tertiary nav in the participants page
2021-12-02 13:09:12 +08:00
Eloy Lafuente (stronk7)
bf4a830f62 Merge branch 'MDL-70894-master' of https://github.com/yankudriavtsev/moodle 2021-12-01 19:10:36 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Yan Kudriavtsev
c72e7946cf MDL-70894 enrol: Fixed return type for count_enrolled_users 2021-11-24 00:06:54 +02:00
Sujith Haridasan
b2527be7d3 MDL-71241 course: Validate and sanitize sort arguments
Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-07-08 23:30:27 +02:00
Adrian Greeve
98edee3c4a Merge branch 'MDL-71235-master' of https://github.com/dcai/moodle 2021-04-29 14:42:35 +08:00
Dongsheng Cai
36bc7b07db MDL-71235 webservices: add activity completion data to web services 2021-04-29 13:52:32 +10:00
Ferran Recio
45048b8796 MDL-70909 core: add cannotmatchanyrows to capabilities join 2021-04-22 13:16:35 +02:00