Meirza [Wed, 9 Nov 2022 02:30:31 +0000 (09:30 +0700)]
MDL-76229 core_form: Show frozen text editor in a more accessible way.
Víctor Déniz [Tue, 8 Nov 2022 13:45:16 +0000 (13:45 +0000)]
on-demand release 4.1dev+
Jake Dallimore [Tue, 8 Nov 2022 04:04:16 +0000 (12:04 +0800)]
Merge branch 'MDL-75941' of https://github.com/paulholden/moodle
Jun Pataleta [Tue, 8 Nov 2022 04:02:00 +0000 (12:02 +0800)]
Merge branch 'MDL-76113-master' of https://github.com/snake/moodle
Jake Dallimore [Tue, 8 Nov 2022 03:44:01 +0000 (11:44 +0800)]
Merge branch 'MDL-76071-master' of https://github.com/laurentdavid/moodle
Jake Dallimore [Tue, 8 Nov 2022 03:31:30 +0000 (11:31 +0800)]
Merge branch 'MDL-72882-master-3' of https://github.com/junpataleta/moodle
Andrew Nicols [Mon, 7 Nov 2022 13:56:06 +0000 (21:56 +0800)]
Merge branch 'MDL-75880' of https://github.com/stronk7/moodle
Andrew Nicols [Mon, 7 Nov 2022 13:51:58 +0000 (21:51 +0800)]
Merge branch 'MDL-73624-master' of https://github.com/meirzamoodle/moodle
Andrew Nicols [Mon, 7 Nov 2022 13:41:02 +0000 (21:41 +0800)]
Merge branch 'MDL-75519-master' of https://github.com/marinaglancy/moodle
Víctor Déniz [Mon, 7 Nov 2022 10:19:56 +0000 (10:19 +0000)]
Merge branch 'm41_MDL-74912_Fix_RegExp_Word_Boundaries_On_MySQL8' of https://github.com/scara/moodle
Andrew Nicols [Mon, 7 Nov 2022 04:21:45 +0000 (12:21 +0800)]
Merge branch 'MDL-75466_upgrade-php-mailer-to-6-6-4' of https://github.com/ziegenberg/moodle
Andrew Nicols [Mon, 7 Nov 2022 04:09:07 +0000 (12:09 +0800)]
MDL-74468 mod_bigbluebuttonbn: Coding style violation fix
Andrew Nicols [Mon, 7 Nov 2022 04:14:00 +0000 (12:14 +0800)]
Merge branch 'MDL-74468-master' of https://github.com/call-learning/moodle
Jun Pataleta [Mon, 7 Nov 2022 04:04:46 +0000 (12:04 +0800)]
Merge branch 'MDL-76052' of https://github.com/stronk7/moodle
Shamim Rezaie [Mon, 7 Nov 2022 01:42:22 +0000 (12:42 +1100)]
Merge branch 'MDL-74545-master' of https://github.com/call-learning/moodle
Matteo Scaramuccia [Mon, 31 Oct 2022 13:38:19 +0000 (14:38 +0100)]
MDL-74912 dml: Fix PHP coding style problems
Matteo Scaramuccia [Sat, 27 Aug 2022 07:37:53 +0000 (09:37 +0200)]
MDL-74912 dml: Fix missing nullable marker
Matteo Scaramuccia [Tue, 7 Jun 2022 20:44:13 +0000 (22:44 +0200)]
MDL-74912 mod_forum: Fix regexp word boundaries markers in MySQL 8
Eloy Lafuente (stronk7) [Sat, 29 Oct 2022 22:23:05 +0000 (00:23 +0200)]
MDL-75880 phpunit: fix all @coversDefaultClass missing @covers
Because @coversDefaultClass doesn't indicate any coverage (it's
just an alias to avoid having to write the class name in @covers),
this commit fixes all the files that were using that annotation
and missing any @covers.
Basically, replacing one by the other and done.
Eloy Lafuente (stronk7) [Tue, 25 Oct 2022 17:11:30 +0000 (19:11 +0200)]
MDL-76052 webservice_xmlrpc: Annotate some wrong plugin uses
It has been detected that there are various uses of the plugins
breaking the inter-communication principles, with core_webservice
implementing functionality plugin-dependent that should belong
to the plugins.
Because of that, https://tracker.moodle.org/browse/MDL-76078 has
been created and we have added some TODO/@todo comments in core
pointing to that issue, for further analysis and fixes there.
Eloy Lafuente (stronk7) [Fri, 21 Oct 2022 17:30:07 +0000 (19:30 +0200)]
MDL-76052 webservice_xmlrpc: Remove it completely from core
Normal removal procedure:
- Remove the plugin completely from core.
- Document it in the webservices upgrade.txt file.
- Add a core upgrade step to proceed to remove any configuration
if the plugin has not been re-installed manually.
Plus:
- Remove a few remaining uses in the hub/sites registration scripts,
that were moved from xmlrpc to hand.made rest calls by MDL-31436
(Moodle 3.4.1 and up) and never removed then.
- Remove the php-xmlrpc extension as a recommendation in composer.
- Remove "xmlrpc" from various comments, trivial cleanup.
Note:
- While working on this MDL-76078 has been created about to
fix a serious design problem detected (it does not affect
functionality). That's out from this issue scope.
Víctor Déniz [Fri, 4 Nov 2022 15:37:10 +0000 (15:37 +0000)]
Merge branch 'MDL-76130-master' of https://github.com/meirzamoodle/moodle
Sara Arjona [Fri, 4 Nov 2022 13:52:52 +0000 (14:52 +0100)]
on-demand release 4.1dev+
Sara Arjona [Fri, 4 Nov 2022 13:52:48 +0000 (14:52 +0100)]
NOBUG: Fixed SVG browser compatibility
Sara Arjona [Fri, 4 Nov 2022 13:52:47 +0000 (14:52 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Daniel Ziegenberg [Sat, 17 Sep 2022 18:53:00 +0000 (20:53 +0200)]
MDL-75466 core: Upgrade PHPmailer to 6.6.5
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Sara Arjona [Fri, 4 Nov 2022 08:00:17 +0000 (09:00 +0100)]
Merge branch 'MDL-76169-master' of https://github.com/andrewnicols/moodle
Jun Pataleta [Fri, 4 Nov 2022 04:16:41 +0000 (12:16 +0800)]
Merge branch 'MDL-75481-master' of https://github.com/kevpercy/moodle
Andrew Nicols [Fri, 4 Nov 2022 04:06:05 +0000 (12:06 +0800)]
Merge branch 'MDL-74035-master' of https://github.com/andrewnicols/moodle
Jun Pataleta [Fri, 4 Nov 2022 03:34:48 +0000 (11:34 +0800)]
Merge branch 'MDL-76103-master' of https://github.com/junpataleta/moodle
Jake Dallimore [Fri, 4 Nov 2022 03:23:29 +0000 (11:23 +0800)]
Merge branch 'MDL-76055' of https://github.com/stronk7/moodle
Jun Pataleta [Fri, 4 Nov 2022 02:38:01 +0000 (10:38 +0800)]
Merge branch 'MDL-76072-master' of https://github.com/lameze/moodle
Víctor Déniz [Thu, 3 Nov 2022 20:37:09 +0000 (20:37 +0000)]
Merge branch 'MDL-70071-master' of https://github.com/Chocolate-lightning/moodle
Víctor Déniz [Thu, 3 Nov 2022 19:40:56 +0000 (19:40 +0000)]
Merge branch 'MDL-76172-master' of https://github.com/sarjona/moodle
Eloy Lafuente (stronk7) [Thu, 3 Nov 2022 17:55:40 +0000 (18:55 +0100)]
Merge branch 'MDL-75289-int-fix' of https://github.com/sarjona/moodle
Sara Arjona [Thu, 3 Nov 2022 16:06:05 +0000 (17:06 +0100)]
Merge branch 'MDL-76169-master' of https://github.com/andrewnicols/moodle
Sara Arjona [Thu, 3 Nov 2022 16:43:54 +0000 (17:43 +0100)]
MDL-75289 mod_data: Fix JS error when importing
Sara Arjona [Thu, 3 Nov 2022 11:26:58 +0000 (12:26 +0100)]
Merge branch 'MDL-75349' of https://github.com/paulholden/moodle
Laurent David [Fri, 4 Nov 2022 08:03:58 +0000 (09:03 +0100)]
MDL-74468 mod_bigbluebuttonbn: Fix logger count method
* The logger::count_callback_events was confusing and needs clarification
and small refactoring.
Andrew Nicols [Fri, 4 Nov 2022 07:51:22 +0000 (15:51 +0800)]
MDL-76169 question: Use correct action menu step
Meirza [Fri, 4 Nov 2022 04:22:26 +0000 (11:22 +0700)]
MDL-76130 install: make the button to the center position
Safat Shahin [Thu, 7 Apr 2022 06:16:14 +0000 (16:16 +1000)]
MDL-74035 qbank_viewquestionname: In place editing
This commit will implement in place editing for the
qbank view where users with permission can edit the
title of the questions from the quesion bank view.
Marina Glancy [Thu, 27 Oct 2022 07:14:44 +0000 (09:14 +0200)]
MDL-76103 search: skip solr behat tests if solr is not installed
Sara Arjona [Thu, 3 Nov 2022 09:23:04 +0000 (10:23 +0100)]
Merge branch 'MDL-76177-master' of https://github.com/aanabit/moodle
Sara Arjona [Thu, 3 Nov 2022 09:19:49 +0000 (10:19 +0100)]
Merge branch 'MDL-75759-master' of https://github.com/junpataleta/moodle
Sara Arjona [Thu, 3 Nov 2022 09:13:10 +0000 (10:13 +0100)]
Merge branch 'MDL-75535' of https://github.com/paulholden/moodle
Andrew Nicols [Thu, 3 Nov 2022 05:46:24 +0000 (13:46 +0800)]
Merge branch 'MDL-75904' of https://github.com/paulholden/moodle
Andrew Nicols [Thu, 3 Nov 2022 05:43:43 +0000 (13:43 +0800)]
Merge branch 'MDL-75784-master' of https://github.com/JBThong/moodle
AMOS bot [Fri, 4 Nov 2022 00:07:38 +0000 (00:07 +0000)]
Automatically generated installer lang files
Laurent David [Wed, 12 Oct 2022 18:05:46 +0000 (20:05 +0200)]
MDL-74468 mod_bigbluebuttonbn: Remove getallheader
* getallheader is only fully compatible with Apache servers. Replace it
with a polyfill.
Shamiso.Jaravaza [Thu, 14 Apr 2022 10:02:24 +0000 (04:02 -0600)]
MDL-74468 mod_bigbluebuttonbn: Fix custom completion for BBB
* BBB has specific completion indicator that need to be taken into account
* Fix mock requests so we can send participant id and then attach events to them
* Refactor slightly the broker to split meeting logic from request (decoding)
* Fix update completion state cron
Andrew Nicols [Wed, 2 Nov 2022 07:11:21 +0000 (15:11 +0800)]
MDL-76169 question: General behat fixes
Whilst amending these tests I discovered some other minor fixes to be
made.
Andrew Nicols [Wed, 2 Nov 2022 03:10:56 +0000 (11:10 +0800)]
MDL-76169 question: Use action menu steps consistently
Andrew Nicols [Wed, 2 Nov 2022 02:58:20 +0000 (10:58 +0800)]
MDL-76169 mod_quiz: Add quiz question bank behat resolver
Andrew Nicols [Wed, 2 Nov 2022 02:52:32 +0000 (10:52 +0800)]
MDL-76169 behat: Normalise exception message in should (not) steps
These steps have accepted a NodeElement instance as an argument for some
time, but were trying to cast it to string when formulating exception
messages, making it harder to debug and, in the case of the 'should see'
step, not work at all.
This patch introduces a new function to produce a consistent naming for
them.
Andrew Nicols [Wed, 2 Nov 2022 02:36:37 +0000 (10:36 +0800)]
MDL-76169 behat: Add improved steps for using action menus
This commit adds new steps related to action menus to support:
* Choosing an item in a named action menu
* Choosing an item in a named action menu within a container
* Confirming that an action menu item does or does not exist in a named
action menu
* Confirming that an action menu item does or does not exist in a named
action menu within a container
The existing action menu steps were insufficient as they assume that
there is only one action menu within he container, which is not
necessarily the case.
The existing action menu steps are not non-JS friendly and will error if
JS is disabled, without providing any fallback when one is easily
available.
Unfortunately these steps cannot be used to replace the existing steps
without manual intervention.
Jun Pataleta [Thu, 3 Nov 2022 02:52:59 +0000 (10:52 +0800)]
Merge branch 'MDL-75289-master' of https://github.com/andrewnicols/moodle
Jun Pataleta [Wed, 2 Nov 2022 13:34:03 +0000 (21:34 +0800)]
Merge branch 'MDL-75513-master-3' of https://github.com/mihailges/moodle
Ilya Tregubov [Wed, 2 Nov 2022 12:08:51 +0000 (15:08 +0300)]
Merge branch 'MDL-75751-master' of https://github.com/sammarshallou/moodle
Sara Arjona [Wed, 2 Nov 2022 07:30:43 +0000 (08:30 +0100)]
Merge branch 'MDL-61880-master' of https://github.com/snake/moodle
Jun Pataleta [Fri, 22 Oct 2021 02:55:54 +0000 (10:55 +0800)]
MDL-72882 tool_langimport: Set default language when deleting lang pack
* When the language pack being deleted is
- the same as the site default language, we must set the site default
language to 'en'.
- fix the user's current language to the default site language.
Jun Pataleta [Fri, 22 Oct 2021 06:15:56 +0000 (14:15 +0800)]
MDL-72882 core: Use default site lang when user lang no longer available
* Check that the lang attribute for the output HTML exists. If not,
use the default site language.
* Also fix the current language for the user.
Andrew Nicols [Fri, 30 Oct 2020 06:08:43 +0000 (14:08 +0800)]
MDL-70071 forum: Convert post threshold warnings to info
Jun Pataleta [Thu, 3 Nov 2022 03:55:42 +0000 (11:55 +0800)]
MDL-75759 courseformat: Link classes in PHPDocs with @see tags
- Linking classes/methods mentioned in PHPDoc with @see tags help devs
checking the PHPDoc to quickly navigate to the class/method mentioned
and also helps us ensure that it points to the correct class/method.
- Some typo/grammar fixes as well in existing PHPDoc descriptions.
- Fixed parameter type in execute()'s PHPDoc block.
Simey Lameze [Tue, 1 Nov 2022 06:08:33 +0000 (14:08 +0800)]
MDL-75759 courseformat: fix documentation of stateupdates tests
Jun Pataleta [Thu, 15 Sep 2022 12:25:14 +0000 (20:25 +0800)]
MDL-75759 courseformat: Fix stateactions test
* Require lib/externallib.php in
\core_courseformat\output\local\state\cm::export_for_template()
* Point @coversDefaultClass to the proper class.
Simey Lameze [Thu, 3 Nov 2022 02:49:46 +0000 (10:49 +0800)]
MDL-76072 tool_lp: only init inlineGrader module if user can grade
Andrew Nicols [Thu, 3 Nov 2022 01:57:18 +0000 (09:57 +0800)]
MDL-75289 mod_data: Make JS more resilient
This change makes the JS in for preset management more resilient.
Previously, if the button was not on the page then an error was thrown.
Instead this code changes the listener to listen to the document and
filters the clicked element based on the same selector. This is a much
safer approach as it will not error if the selector was not found on the
page.
In this case the behat test introduced elsewhere in this issue is
testing a scenario where the Save as preset button is not present
because there are no fields to store as a preset.
Laurent David [Wed, 29 Jun 2022 20:13:52 +0000 (22:13 +0200)]
MDL-74545 mod_bigbluebuttonbn: Allow changing the polling value
* The polling time on the BBB room page can be changed via the poll_interval
settings (general settings)
Amaia Anabitarte [Wed, 2 Nov 2022 15:15:16 +0000 (16:15 +0100)]
MDL-76177 mod_data: Don't close a div that has not been opened
Eloy Lafuente (stronk7) [Sun, 25 Sep 2022 22:16:10 +0000 (00:16 +0200)]
MDL-76055 mnet: Switch the keyswap to use the library
This service is different from the rest because it
doesn't run encrypted, but plain xmlrpc. Hence, we
cannot use the normal mnet_xmlrpc_client (that provides
on-the-fly encryption and signing).
So, instead, let's instantiate a custom client here
and use it for this pure xmlrpc request and response.
PS: It's curious that this exact sevice has support
for proxies but the mnet_xmlrpc_client one has not. I'm not
going to modify that here, but have left a comment
in the code about that.
PS: Some small style changes have been applied around
the modified code (spacing, &&, comments...)
Eloy Lafuente (stronk7) [Sun, 25 Sep 2022 14:27:21 +0000 (16:27 +0200)]
MDL-76055 auth_mnet: Fix update_enrolments request
Basically this fixes MDL-70833 that was reproduced while
testing the update_enrolments requests. Summary:
- Fixes a typo in table name preventing it to be updated ever.
- Fix outer join that was missing records.
- Stop playing and mixing ids (local and remote).
- Better control which enrolments have to be kept (previously
they were being deleted immediately after creating them).
- Improve the coding style of inserts.
- Modernise the deletions to use sql helper and to work with 0..n ids.
Eloy Lafuente (stronk7) [Fri, 23 Sep 2022 16:22:29 +0000 (18:22 +0200)]
MDL-76055 mnet: Switch the mnet server to use the library
Eloy Lafuente (stronk7) [Thu, 22 Sep 2022 07:20:26 +0000 (09:20 +0200)]
MDL-76055 mnet: Switch the mnet client to use library
Completely remove all uses if the xmlrpc php extension in
the client and replace them by the phpxmlrpc library.
Very noticeably, remove all the uses of the curl extension
and use phpxmlrpc own curl support.
Working ok for moodle-moodle/mahara sso and mahara portfolio export.
Eloy Lafuente (stronk7) [Tue, 20 Sep 2022 16:45:47 +0000 (18:45 +0200)]
MDL-76055 libraries: Autoload phpxmlrpc and verify it works
Also, we can now safely remove Autoloader.php, because
Moodle PSR-4 autoloader has taken control, so document
and test it too.
Eloy Lafuente (stronk7) [Tue, 20 Sep 2022 16:10:57 +0000 (18:10 +0200)]
MDL-76055 libraries: Import phpxmlrpc 4.8.0 release
Sara Arjona [Wed, 2 Nov 2022 11:28:15 +0000 (12:28 +0100)]
MDL-76172 core: Fix error when userinfo is false
This patch should fix a regression introduced in MDL-75171, raised
while running the OBv2.1 certification.
The new method get_raw_userinfo() can return stdClass or false but
the second one was not taken into account from get_userid() (so an
error was thrown: "Argument 1 passed to
core\oauth2\client::map_userinfo_to_fields() must be an instance
of stdClass, bool given").
Mihail Geshoski [Mon, 31 Oct 2022 04:17:21 +0000 (12:17 +0800)]
MDL-75513 core_grades: New method that returns the grade item string
Introduces a new method get_element_type_string() in grade/lib.php
which returns the appropriate string that describes the type of the
grade item element.
Mihail Geshoski [Sat, 22 Oct 2022 14:14:10 +0000 (22:14 +0800)]
MDL-75513 behat: Update existing behat tests
Mihail Geshoski [Mon, 10 Oct 2022 14:13:59 +0000 (22:13 +0800)]
MDL-75513 gradereport_user: Add behat tests
Mihail Geshoski [Mon, 10 Oct 2022 04:15:37 +0000 (12:15 +0800)]
MDL-75513 gradereport_user: Output the tertiary nav action in index.php
Outputs the relevant tertiary navigation actions based in index.php,
the prev/next user navigation and removes the old trigger buttons for
the group and user selector from the zero state page.
Mihail Geshoski [Fri, 7 Oct 2022 17:25:18 +0000 (01:25 +0800)]
MDL-75513 gradereport_user: Create tertiary navigation actions
Mihail Geshoski [Fri, 7 Oct 2022 17:05:09 +0000 (01:05 +0800)]
MDL-75513 core_grades: Renderer for the custom user header
Mihail Geshoski [Fri, 7 Oct 2022 16:50:50 +0000 (00:50 +0800)]
MDL-75513 message: Enable optional text display in the contact toggle
Mihail Geshoski [Fri, 7 Oct 2022 16:47:15 +0000 (00:47 +0800)]
MDL-75513 gradereport_user: Trigger element for the view mode selector
Creates a renderer method and a template for the element that would
trigger the view mode selector in the grade user report.
Mihail Geshoski [Fri, 7 Oct 2022 16:37:27 +0000 (00:37 +0800)]
MDL-75513 core_grades: Renderer for the prev/next user navigation
Mihail Geshoski [Fri, 7 Oct 2022 16:26:20 +0000 (00:26 +0800)]
MDL-75513 gradereport_user: Create trigger element for the user selector
Creates a renderer method and a template for the element that would
trigger the user selector.
Mihail Geshoski [Fri, 7 Oct 2022 16:12:42 +0000 (00:12 +0800)]
MDL-75513 core_grades: Create trigger element for the group selector
Creates a renderer method and a template for the element that would
trigger the group selector.
Mihail Geshoski [Fri, 7 Oct 2022 15:54:58 +0000 (23:54 +0800)]
MDL-75513 gradereport_user: Update the grade user report
Updates the styling of the grade user reports and introduces
functionality which enables expanding and collapsing grade
categories.
Jake Dallimore [Wed, 2 Nov 2022 07:12:56 +0000 (15:12 +0800)]
MDL-76113 enrol_lti: Fix secret on lti user for LTI 2.0 consumers
Fixes the enrol_lti_users.consumersecret field for LTI 2.0 users.
This field erroneously contained the tool secret and not the consumer
secret needed for service requests when used with LTI 2.0 consumers,
which resulted in complete grade sync failure for LTI 2.0 consumers.
This patch:
- adds an upgrade step to address existing incorrect secrets for LTI
2.0 launched users. It sets these to the correct consumer secret.
- fixes the way the secret is first set during a launch, ensuring
this->consumer->secret is used, which properly captures either the
tool secret (for 1.1 launches) or the consumer secret (for 2.0
launches).
Jun Pataleta [Wed, 2 Nov 2022 05:39:27 +0000 (13:39 +0800)]
Merge branch 'MDL-75038' of https://github.com/paulholden/moodle
Jun Pataleta [Wed, 2 Nov 2022 05:20:12 +0000 (13:20 +0800)]
Merge branch 'MDL-75848' of https://github.com/paulholden/moodle
Jake Dallimore [Mon, 31 Oct 2022 09:31:59 +0000 (17:31 +0800)]
MDL-61880 tool_oauth2: don't rely on discovery when editing issuers
Adjusts the testing scenarios so that we don't rely on endpoint
discovery being run during an issuer edit, which is no longer the case.
For scenarios that need a userinfo endpoint, set this manually.
Jake Dallimore [Thu, 20 Oct 2022 03:08:39 +0000 (11:08 +0800)]
MDL-61880 core: don't clear issuer fields not present in form data
In cases where we have an id, load the persistent and then set new data
before saving. This ensures we don't delete fields which are missing in
the form data.
Yannick Forget [Mon, 3 Oct 2022 06:40:35 +0000 (08:40 +0200)]
MDL-61880 core: Retain OAuth 2.0 user field mappings after issuer update
Shamim Rezaie [Wed, 2 Nov 2022 03:02:33 +0000 (14:02 +1100)]
Merge branch 'MDL-76142' of https://github.com/paulholden/moodle
Shamim Rezaie [Wed, 2 Nov 2022 01:57:09 +0000 (12:57 +1100)]
Merge branch 'master_MDL-75306-lastused-41' of https://github.com/catalyst/moodle-MDL-72752
Paul Holden [Tue, 7 Jun 2022 07:19:13 +0000 (08:19 +0100)]
MDL-75038 blog: link back to user only when one specified.
Paul Holden [Tue, 1 Nov 2022 14:05:39 +0000 (14:05 +0000)]
MDL-76142 cohort: cross DB support for description filter.
Specifically avoids Oracle exception ORA-00932.
Ilya Tregubov [Tue, 1 Nov 2022 12:38:56 +0000 (15:38 +0300)]
Merge branch 'MDL-75289-master' of https://github.com/sarjona/moodle