112224 Commits

Author SHA1 Message Date
Jake Dallimore
0e74284dfc
MDL-78219 enrol_lti: fix auth method usage in base testcase 2024-01-15 15:41:52 +08:00
Jake Dallimore
a724bb8fae
MDL-78219 auth_lti: ensure user updates happen after authentication
If an existing session is active at the time of launch, that user id
appears in the user_updated log. This log should show the launching user
updating their own record, not someone else. To resolve this, auth the
user before making any record updates so that the event gets the correct
user id.
2024-01-15 15:41:52 +08:00
Jake Dallimore
47703c1109
MDL-78219 auth_lti: force empty session before launch user creation
If an existing session is active at the time of launch, that user id
appears in the user_created log, incorrectly (it should be system/0).
This patch makes sure that any existing session is terminated before
creation of a new user during launches.
2024-01-15 15:41:52 +08:00
Huong Nguyen
badf45d722 MDL-69615 privacy: Use task trait for unit tests 2024-01-15 11:18:36 +07:00
Huong Nguyen
50c134a1ad MDL-69615 core_task: Add a task trait 2024-01-15 11:18:36 +07:00
Eloy Lafuente (stronk7)
9f10626533
MDL-80591 phpunit: Coding style cleanup both CLI scripts
While the init.php was cleaned up not long ago, let's
re-review it (small detail only) and proceed to, also,
clean up the util.php one.

Note that both will raise an error about missing MOODLE_INTERNAL
check, but that's expected, they are CLI scripts, independent
from Moodle's bootstrap, so they don't have config.php required
either.
2024-01-13 18:46:45 +01:00
Eloy Lafuente (stronk7)
5f31b37e1d
MDL-80591 phpunit: delegate run to phpunit binary
Instead of manually including composer's auto-loading
stuff and then run PHPUnit\TextUI\Command::main(), now
we are using the PHPUnit "binary".

That way behaviour should be 100% the same than
running vendor/bin/phpunit (recommended instead of util.php --run).

Also, note that, for other util.php commands, we still need
composer's auto-loading to happen, so we have moved it immediately
after the --run command.

Finally, a few more file_exists() conditions have been added
to ensure that PHPUnit is properly installed. Redundant but...
2024-01-13 18:13:52 +01:00
Johnny Tsheke
957edb8ed3 MDL-79519 course: remove null to use the default value. 2024-01-12 20:31:10 -05:00
David Carrillo
10d2b5864b
MDL-80325 reportbuilder: Update 'Delete' links to red color
- Update all 'Delete' links on RB system report actions to red color
2024-01-12 15:38:19 +01:00
Jun Pataleta
be63ec95cb
Merge branch 'MDL-80540-main' of https://github.com/sarjona/moodle 2024-01-12 17:47:07 +08:00
Jun Pataleta
24c4e47788
Merge branch 'MDL-80526-master' of https://github.com/ScottVerbeek/moodle 2024-01-12 17:44:38 +08:00
Jun Pataleta
bac7b4378a
Merge branch 'MDL-80192' of https://github.com/paulholden/moodle 2024-01-12 17:28:41 +08:00
Paul Holden
2097872510
Merge branch 'MDL-80564' of https://github.com/marinaglancy/moodle into main 2024-01-12 09:07:38 +00:00
Santosh Nagargoje
bfc9f17686 MDL-80498 group: Added required rule for filepicker field 2024-01-12 14:27:42 +05:30
Paul Holden
6576b1f9ba
MDL-80192 reportbuilder: ensure filter form group elements have labels.
This ensures compliance with the following WCAG criterion:

"H71: Providing a description for groups of form controls using fieldset
and legend elements".
2024-01-12 08:39:36 +00:00
Paul Holden
9357a1c583
MDL-80192 forms: implement method to set group element hidden label.
This is consistent with the API used for other form element types,
in order to provide screen-readable text in the fieldset legend while
not necessarily wanting to display said label.

The new class property is automatically exported to the template via
the `templatable_form_element` trait.
2024-01-12 08:33:37 +00:00
Jun Pataleta
7770de1dd1
Merge branch 'MDL-80353' of https://github.com/marinaglancy/moodle 2024-01-12 16:20:51 +08:00
Mikel Martín
a8b5044920 MDL-80244 theme_boost: Refactor navbar for Bootstrap 5 2024-01-12 08:46:43 +01:00
meirzamoodle
958b48c54d MDL-80081 editor_tiny: Allow empty content in the i tag 2024-01-12 14:04:17 +07:00
Sara Arjona
fdc48c0edd
MDL-80540 section_links: Fix link to current section/week
After the changes done in MDL-79986, the "Jump to current topic/week"
link in the Sections links block stopped working.
This patch fixes it and uses the new section.php page.
2024-01-12 07:08:05 +01:00
Ilya Tregubov
580c009cac weekly release 4.4dev 2024-01-12 09:11:31 +08:00
Ilya Tregubov
a9b833834a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2024-01-12 09:11:24 +08:00
ScottVerbeek
b364ace6c7 MDL-80526 tool_filetypes: Test required icons in test_get_file_icons
The test now checks for the required icons, without needing to specify a count.
Allowing developers to add custom icons to the folder pix/f/mycustomicon.svg without needing to alter any unit test.
2024-01-11 14:45:09 +10:00
Jun Pataleta
f25864aa3a
Merge branch 'MDL-80246-main' of https://github.com/mihailges/moodle 2024-01-11 11:50:07 +08:00
Huong Nguyen
92f38b9cb5 Merge branch 'MDL-80452-main' of https://github.com/andelacruz/moodle 2024-01-11 10:44:01 +07:00
Huong Nguyen
a75e325fdc Merge branch 'MDL-80229-main' of https://github.com/davewoloszyn/moodle 2024-01-11 10:35:42 +07:00
Jun Pataleta
d077ba647d
Merge branch 'MDL-80313' of https://github.com/stronk7/moodle 2024-01-11 11:32:40 +08:00
Angelia Dela Cruz
e27de1d44d MDL-80452 mod_h5pactivity: Behat for H5Pactivity duplication and delete 2024-01-11 11:17:51 +08:00
Ilya Tregubov
8c8f98b244 Merge branch 'MDL-79608' of https://github.com/paulholden/moodle 2024-01-11 11:17:31 +08:00
Jun Pataleta
c67b184f4c
Merge branch 'MDL-79780' of https://github.com/timhunt/moodle 2024-01-11 10:44:41 +08:00
Ilya Tregubov
8091b684d9 Merge branch 'MDL-80446' of https://github.com/paulholden/moodle 2024-01-11 10:44:07 +08:00
Huong Nguyen
a3654984c1 Merge branch 'MDL-79296-main' of https://github.com/rmady/moodle 2024-01-11 09:42:52 +07:00
Ilya Tregubov
e75d017f1e Merge branch 'MDL-80357_main' of https://github.com/SimonasAdams/moodle 2024-01-11 10:38:10 +08:00
Ilya Tregubov
0fc2732707 Merge branch 'MDL-80333_master' of https://github.com/santoshndev/moodle 2024-01-11 10:34:07 +08:00
Paul Holden
3f9277723b
MDL-80499 datafield_date: specify UTC time when editing field content. 2024-01-10 19:23:08 +00:00
Sara Arjona
502e1a8329
Merge branch 'MDL-71732' of https://github.com/paulholden/moodle 2024-01-10 17:00:02 +01:00
Sara Arjona
53a9613bab
Merge branch 'MDL-80014' of https://github.com/paulholden/moodle 2024-01-10 16:10:08 +01:00
Santosh Nagargoje
ee4a176866 MDL-80333 Authentication: Fixed new login notification adhoc task 2024-01-10 15:32:16 +05:30
Paul Holden
a32397feda
MDL-80328 user: use modal confirmation for admin deleting users. 2024-01-10 09:06:07 +00:00
Sara Arjona
0293d208f9
Merge branch 'MDL-80340-main' of https://github.com/lameze/moodle 2024-01-10 07:34:57 +01:00
Huong Nguyen
b6378ff84d Merge branch 'MDL-80382-main' of https://github.com/andelacruz/moodle 2024-01-10 10:29:50 +07:00
Huong Nguyen
867e104353 Merge branch 'MDL-65403_master' of https://github.com/marxjohnson/moodle 2024-01-10 09:59:32 +07:00
meirzamoodle
d744c7f510 MDL-80058 editor_tiny: add preformatted format to the blocks 2024-01-10 09:37:26 +07:00
Stevani Andolo
2425e07db3 MDL-79130 task_adhoc: Defined max retry constant 2024-01-10 10:17:42 +08:00
Ilya Tregubov
d27c866dd2 Merge branch 'MDL-79830' of https://github.com/paulholden/moodle 2024-01-10 09:00:54 +08:00
Ilya Tregubov
320cb03ffc Merge branch 'MDL-79532' of https://github.com/paulholden/moodle 2024-01-10 08:57:34 +08:00
Marina Glancy
27c6c174d8 MDL-80564 reportbuilder: Consistent permission check for user full name 2024-01-09 17:50:56 +00:00
Paul Holden
cd7b07d743
MDL-80559 badges: set contexturl/name in badge awarded notification. 2024-01-09 17:15:33 +00:00
Simey Lameze
95da5a44a8 MDL-80340 behat: make query to fetch h5p attempts less strict 2024-01-09 16:13:55 +08:00
Angelia Dela Cruz
e8c8dbc54e MDL-80382 behat: Replace "Frist" typos in Behat tests to "First" 2024-01-09 10:44:15 +08:00