Andrew Nicols
50d1e69df6
MDL-75552 badges: move apiBase consumption to backpack
...
The apiBase in .well-known/badgeconnect.json was ignored and it was
causing some failures when connecting or sending badges to an
external backpack.
For OBv2.1, it has been changed to always use the apiBase defined
in the badgeconnect.json backpack provider.
2023-05-09 08:51:30 +02:00
Laurent David
9117af48ac
MDL-77781 core_completion: Completion view must be deleted too
...
When resetting a course, completion view entries should also be
deleted
Co-authored-by: Georg Moser <georg@moser.link>
2023-05-03 16:05:28 +02:00
Jake Dallimore
79fe493ab4
Merge branch 'MDL-77384-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-05-03 16:52:45 +08:00
Sara Arjona
6064ce62f5
Merge branch 'MDL-77312-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-05-03 09:59:22 +02:00
Sara Arjona
767419571e
Merge branch 'MDL-77858-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-05-02 16:49:53 +02:00
Ilya Tregubov
d28386a29d
Merge branch 'MDL-78025_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE
2023-05-02 11:43:30 +08:00
Jake Dallimore
4fa9ed7956
Merge branch 'MDL-78009-401' of https://github.com/marinaglancy/moodle into MOODLE_401_STABLE
2023-04-28 13:26:02 +08:00
Tim Hunt
de8607067f
MDL-78025 questions: improve the comment on question_references.version
2023-04-26 15:45:12 +01:00
Tim Hunt
15ff1352c2
MDL-78025 questions: fix PHPdoc on question_require_capability_on
2023-04-26 15:45:00 +01:00
Tim Hunt
4a9c0b1410
MDL-78025 questions: questions_in_use should check question_references
...
This avoids the needs for plugins to do separate queries, which is
easier for them, and better performing.
2023-04-26 15:40:41 +01:00
Tim Hunt
a9fa52295a
MDL-78025 question: move hiding logic into question_delete_question
...
This logic belongs in the API, so it is applied consistently.
Also this avoids calling the expensive function questions_in_use
twice per question.
2023-04-26 15:38:57 +01:00
Sara Arjona
9a3430f3fe
Merge branch 'MDL-77313-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-04-25 15:18:42 +02:00
Paul Holden
22b481f73c
MDL-77384 check: clarify statistics check name.
2023-04-25 09:04:41 +01:00
Marina Glancy
ccdaef7a68
MDL-78009 auth: require necessary files
2023-04-24 13:38:58 +01:00
Paul Holden
0d7393c7ee
MDL-77312 files: exclude drafts when determining license usage.
2023-04-24 11:07:38 +01:00
Paul Holden
f3ae5116d0
MDL-77313 restore: re-add field to indicate course/category search.
...
When the two restore forms for searching courses and categories were
converted to core templates in eb9935c9 they lost the named submit
button, which broke searching.
2023-04-24 11:04:26 +01:00
Paul Holden
b01ce337f6
MDL-77858 javascript: correct core/notification
exception imports.
2023-04-24 10:44:14 +01:00
Huong Nguyen
4ec5aac734
MDL-78007 tiny_media: Fix wrong condition for the Tiny Media
...
Including in this commit:
- Switched to Tiny editor in manually_mark_question.feature
2023-04-24 15:59:32 +07:00
Jun Pataleta
ceb2f856b0
Merge branch 'MDL-77927-401' of https://github.com/stevandoMoodle/moodle into MOODLE_401_STABLE
2023-04-21 16:52:21 +08:00
Jun Pataleta
526e1af88b
MDL-77927 core: mod_assignment subplugins environment check
2023-04-21 15:53:32 +08:00
Jun Pataleta
b5a65e56fd
Merge branch 'MDL-77896-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-04-21 11:10:39 +08:00
Paul Holden
c28cd3215b
MDL-77896 editor_tiny: approximate height for non-visible editors.
...
When an editor is renderer initially invisible to the browser, e.g.
the forum "Add discussion" form, it has a `clientHeight` value of
zero. We can approximate an alternative value based on the number
of rows in the textarea.
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-04-20 15:24:34 +01:00
Ilya Tregubov
bb5bd2eed8
Merge branch 'MDL-77436-401' of https://github.com/meirzamoodle/moodle into MOODLE_401_STABLE
2023-04-20 16:23:19 +08:00
Andrew Nicols
1d16c049f3
MDL-77718 editor_tiny: Restrict the revision to int for loaders
...
The revision should always be an int. I suspect this was missed during
debugging and not corrected.
2023-04-19 13:20:25 +00:00
Paul Holden
ce9cb1156c
Merge branch 'MDL-77897-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE
2023-04-19 14:13:04 +01:00
Paul Holden
be8c02fc2c
Merge branch 'MDL-77944-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE
2023-04-19 13:06:41 +01:00
Andrew Nicols
ee519b690c
MDL-77897 editor_tiny: Save editor content on editor blur
2023-04-19 14:57:26 +08:00
Jun Pataleta
799e962f1f
Merge branch 'MDL-77953_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE
2023-04-19 12:37:45 +08:00
Eloy Lafuente (stronk7)
e9fcdec98b
MDL-77953 pagelib: Ensure that null $SCRIPT continues behaving the same
...
It's possible to have some Moodle components soft linked instead
of being real directories within codebase (within dirroot).
For example, Composer's "vendor" directory can be soft linked
(from elsewhere), or also plugins can be installed using soft
links.
In those cases, Moodle calculates the $SCRIPT global as null. And,
then, string operations on it are emitting a PHP deprecation message
with PHP 8.1 and up.
This fix just ensures that the behaviour is the same than before
PHP 8.1, aka: ltrim(null) = '' (empty string), without any PHP warning.
2023-04-18 18:50:37 +02:00
Andrew Nicols
fc6764324a
Merge branch 'MDL-77895-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-04-18 23:35:19 +08:00
Paul Holden
1b828701a6
MDL-77895 editor_tiny: standardize quickbar selection toolbar.
...
Ensure the same heading tags are available as those defined in the
editor block formats configuration (c51b7e2c).
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-04-18 07:45:23 +01:00
Andrew Nicols
b07df211ce
Merge branch 'MDL-77829-401' of https://github.com/stevandoMoodle/moodle into MOODLE_401_STABLE
2023-04-18 12:31:46 +08:00
Andrew Nicols
4c289966d3
Merge branch 'MDL-77735-401' of https://github.com/sarjona/moodle into MOODLE_401_STABLE
2023-04-18 12:10:56 +08:00
Andrew Nicols
bc85007834
MDL-77944 behat: Rename chrome options for w3c support
...
From Selenium 4.8.0, support for non-w3c browser control has ended.
We only use W3C browser control these days, and this was missed as part
of the move to W3C. All browser options must be vendor-prefixed.
2023-04-18 09:04:08 +08:00
Ilya Tregubov
dd553c1406
Merge branch 'MDL-77827-401' of https://github.com/HuongNV13/moodle into MOODLE_401_STABLE
2023-04-18 08:59:30 +08:00
Sara Arjona
38f5c818cb
MDL-77735 core: Check $CFG->lang isset
...
In some cases, $CFG->lang might not be set, and this is causing a
Notice to be displayed when, for instance, database connection fails.
This patch should fix this case.
2023-04-14 13:46:51 +02:00
Huong Nguyen
2f601f1e51
MDL-77827 events: Changed JSON comparison to be less strict
2023-04-14 12:29:32 +07:00
Sara Arjona
4c4be40c77
Merge branch 'MDL-76986-401' of https://github.com/davewoloszyn/moodle into MOODLE_401_STABLE
2023-04-13 17:32:03 +02:00
Sara Arjona
bc34e3fef3
Merge branch 'MDL-76859-401' of https://github.com/sarjona/moodle into MOODLE_401_STABLE
2023-04-13 16:24:28 +02:00
Sara Arjona
59eac981eb
Merge branch 'MDL-77468-401' of https://github.com/rmady/moodle into MOODLE_401_STABLE
2023-04-13 09:19:58 +02:00
David Woloszyn
ab0038da84
MDL-76986 editor_tiny: Convert language code format for getting strings
2023-04-13 16:05:14 +10:00
Juan Leyva
2cde957897
MDL-77468 user: Fix invalid check for group belonging
2023-04-12 22:13:22 -03:00
Sara Arjona
26aaa7486a
Merge branch 'MDL-77012-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
2023-04-12 14:09:33 +02:00
Petr Skoda
f336875b1a
MDL-76859 h5p: Fix behat failures
...
- Only resize if the H5P EmbedCommunicator is defined (otherwise, it was causing a
JS error)
- An unnecessary image has been removed from the greeting-card.h5p fixture package.
That way, the text will always be displayed (even if the iframe is still not
resized). Instead of replacing the original greeting-card-887.h5p file, I've
renamed it to greeting-card.h5p, to remove these ugly and unnecessary numbers
at the end of the file name).
2023-04-12 12:27:06 +02:00
Sara Arjona
6381daf52a
Merge branch 'MDL-76993-401' of https://github.com/aanabit/moodle into MOODLE_401_STABLE
2023-04-12 09:54:22 +02:00
Amaia Anabitarte
3a38791d62
MDL-76993 core_course: Recover move right/left functionality
...
This is a backport of MDL-76990
2023-04-11 13:28:00 +02:00
Sara Arjona
5563e99f2c
Merge branch 'MDL-77837-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE
2023-04-11 12:12:49 +02:00
Stevani Andolo
b796cbd03c
MDL-77829 core: Added environment check for mod_assignment
...
Decided to add an environment check before uninstalling the
mod_assignment plugin to prevent data lost.
2023-04-10 13:54:00 +08:00
Andrew Nicols
202718f968
MDL-77837 core: Improve usage docs for cron_setup_user
2023-04-06 23:21:29 +08:00
Andrew Nicols
44d734147a
MDL-77837 phpunit: Ensure that the cron user setter is used
...
When running an adhoc task in a unit test we should use the cron variant
of the set user method to mimic the behaviour of a real cron run.
2023-04-06 23:21:29 +08:00