Commit Graph

32290 Commits

Author SHA1 Message Date
Jun Pataleta 512a957de8 Merge branch 'MDL-81570-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-24 14:40:30 +08:00
Sara Arjona 4e70f41e54 Merge branch 'MDL-81209-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-23 15:37:09 +02:00
Sara Arjona 3a36e2731f Merge branch 'MDL-81457-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-23 14:56:39 +02:00
Sara Arjona 393e4c2a11 MDL-81570 tiny_premium: Add missing lang string 2024-04-22 09:41:01 +02:00
Jun Pataleta 76c0c9ed59 Merge branch 'MDL-81525-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-17 23:42:14 +08:00
Jun Pataleta 33b34bc86a MDL-81552 core: Assign proper webdav_client class variables 2024-04-16 13:06:46 +08:00
Andrew Nicols ffc51ab3fd MDL-81525 core_user: Move after_complete_login to correct NS 2024-04-15 08:53:35 +08:00
Andrew Nicols 99748cdee6 Merge branch 'MDL-70829-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-04-12 11:59:04 +08:00
Huong Nguyen 951a3d5e5c Merge branch 'MDL-79174_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-04-12 10:56:50 +07:00
Andrew Nicols 07dab571dd Merge branch 'MDL-81192_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-04-12 11:48:24 +08:00
Jun Pataleta 4544ea122b MDL-70829 output: Remove the presentation role for html_writer::img()
* A presentation role is not necessary for the img tag.
  - If a non-empty alt text is provided, the presentation role will
  conflict with the alt text.
  - An empty alt text denotes a decorative image. The presence of a
  presentation role is redundant.
* Make sure that the alt text is set to an empty string. Otherwise,
  an img tag without an alt attribute will be produced which is an
  invalid markup.
2024-04-12 11:45:35 +08:00
Jun Pataleta 007e527c3c MDL-70829 core: Set the icon of action icons as a decorative image
* When text is rendered for the action icon, set the icon as a
decorative image by setting empty alt and title attributes and adding
the aria-hidden attribute as well. Otherwise, assistive technologies
will read the action name twice.
2024-04-12 11:14:06 +08:00
Jun Pataleta ca3218b23f MDL-70829 core: Remove presentation role for decorative images
* An image with non-empty alt text should not have a presentation role.
* An empty alt attribute is sufficient for decorative images. No need to
add a presentation role for them.
* Additionally, if there is already text that is present for an image,
there's no need to add an alt text with the same text. Such images are
decorative and should just have an empty alt text.
2024-04-12 11:13:12 +08:00
Huong Nguyen 1872094df6 Merge branch 'MDL-81256-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-04-12 08:58:28 +07:00
Shamim Rezaie 34d5c59153 Merge branch 'MDL-81306-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-12 11:46:06 +10:00
Huong Nguyen 8aed364c22 Merge branch 'MDL-81316-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-12 08:37:01 +07:00
Shamim Rezaie 33fd0471e8 Merge branch 'MDL-81482_403' of https://github.com/AnupamaSarjoshi/moodle into MOODLE_403_STABLE 2024-04-12 09:31:10 +10:00
Sara Arjona c5c52e66f3 Merge branch 'MDL-80469-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-04-11 14:52:00 +02:00
Marina Glancy 6e5d277fc2 MDL-80469 forms: add a hidden label to the button action group
This is a temporary solution to the accessibility problem
"Fieldsets without legend". We will no longer use a fieldset tag
if there is no legend after MDL-80431
2024-04-11 12:56:24 +01:00
Pedro Jordao 95c957791e MDL-80195 forms: Keep dropdown menu open when tabbing into datepicker
When accessing a datepicker that is within a dropdown menu using the tab
key, the navigation sequence was changed since the datepicker code is
not rendered within the dropdown menu element, thus the dropdown was
closed as it was understood that we were not more inside it.
Furthermore, when exiting the datepicker by pressing tab, as the
dropdown was closed, the navigation jumped to the first element on the
page, which is the link to Skip to main content.

To resolve this, a validation was added that keeps the dropdown menu
open if the datepicker is open and accessed via the tab key.
2024-04-11 11:03:38 +02:00
Mark Johnson 217154895c MDL-81192 sessions: Prevent false positive session change errors
If $CFG->enable_read_only_sessions_debug was not enabled, debugging could be
enabled part-way through a request when restart_with_write_lock was
called. This meant that a diff between the initial and final session
would be made during write_close(), although the intial session state
was never captured. This generated false positives in the logs, and it
thought any variable set in the session was a change from the original
value.

This ensures that debugging is enabled before the debug flag is allowed
to change, preventing false positives.
2024-04-11 08:54:39 +01:00
Huong Nguyen f990fcdca7 Merge branch 'MDL-81327-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-04-11 10:19:07 +07:00
Huong Nguyen 0cd42e33bf Merge branch 'MDL-81351-403-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2024-04-10 13:55:26 +07:00
Anupama Sarjoshi cec3a6438b MDL-81482 Questions: Fix questionlib_test PHPUnit tests 2024-04-09 16:49:22 +01:00
Andrew Nicols 61282aa692 MDL-81327 report_log: Make group filtering logstore agnostic
The original implementation of group filtering introduced in MDL-80565
assumed that the log table existed in Moodle's own database. This is not
the case of the database logstore, or any similar logstore implemetning
the database \core\log\sql_reader interface.

Furthermore this check was also applying the SQL when the user had the
`accessallgroups` capability, or when the course was not in SEPARATE
groups mode (no groupmode and/or visible groups).

Co-authored: Laurent David <laurent.david@moodle.com>
2024-04-09 11:00:30 +02:00
Andrew Nicols ff4d5f3caa MDL-81327 core: Remove unnecessary table filter
The \Traversable interface does not define the `valid` method.
Furthermore, the `valid` method actually checks that there is a _next_
value, which requires the value already be fetched and waiting. This is
not the case for all Iterators. For example the CallbackFilterIterator
does not load the initial value until it is requested.

It is completely unnecessary to do this check anyway as an invalid
Iterator will just not return any values.
2024-04-09 11:00:29 +02:00
Jake Dallimore 829a0d615a Merge branch 'MDL-81060-403-fix' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-04-09 10:13:37 +08:00
Sara Arjona 2f59f5b835 Merge branch 'MDL-81298-MOODLE_403_STABLE' of https://github.com/vithushau/moodle into MOODLE_403_STABLE 2024-04-08 17:11:55 +02:00
Sara Arjona bf9e1f978e Merge branch 'MDL-78457-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-08 16:54:47 +02:00
Andrew Nicols 17ba4c535b MDL-81209 core: Unit test should not care about plugin details 2024-04-08 20:54:26 +08:00
Marina Glancy 0b8ce298cb MDL-81256 lib: fix rounding of thumbnail image size 2024-04-08 10:01:47 +01:00
Jake Dallimore 94eb59c5b8 Merge branch 'MDL-81405-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-04-08 15:35:18 +08:00
Jake Dallimore a4a4cb1cdb MDL-81060 core: fix incorrect userquota usage in zip_packer
This change reverts much of MDL-74641, removing the erroneous userquota
checks from zip_packer. Now, during extraction, the zip_packer will exit
with an error status when it encounters a file which is larger than its
advertised size, and NOT when it determines the size of the extracted
files have exceeded the userquota (which only applies to private files
and which was used incorrectly here). It also reverts changes to the
draftfiles_ajax.php file, restoring the original (pre-MDL-74641) error
handling.
2024-04-08 09:11:48 +07:00
Andrew Nicols 60a2eba17d MDL-81457 core: Mark SSL test as skipped, not incomplete
The incomplete test is intended for tests which are written but whose
code does not yet exist.

https://docs.phpunit.de/en/9.6/incomplete-and-skipped-tests.html
2024-04-08 08:46:44 +08:00
Juan Leyva 5e7440acdc MDL-81405 session: New core cookie helper utility class 2024-04-06 12:25:51 +02:00
Huong Nguyen daa896b54a Merge branch 'MDL-81386-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-04 21:56:29 +07:00
Andrew Nicols 493bef4270 MDL-81316 core: Encode anchor fragments properly to RFC 3986 2024-04-04 16:04:37 +08:00
Huong Nguyen 38fc785fe4 MDL-81393 atto: Disable mediaplugin filter for Behat test 2024-04-04 00:23:28 +11:00
Sara Arjona 075138c474 MDL-81386 output: Fix failure in PHPUnit when running filtered tests
There was a data provider to get the list of the FontAwesome icons that
was initialized when running filtered tests.
It was causing some failures with filtered tests that, for instance,
called require_login and changed the course.
To avoid this failure (and also to improve the performance), the logic
to get the icons list has been moved to the test.
2024-04-03 09:27:10 +02:00
Andrew Nicols 22ae648dd2 Merge branch 'MDL-80818-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-04-03 13:05:36 +08:00
Paul Holden 1d8c25f479 MDL-78457 course: remove participants navigation if cannot access. 2024-04-02 10:03:47 +01:00
Helen Foster 3fdae1298f MDL-81351 lang: Import fixed English strings (en_fix) 2024-03-28 10:58:24 +01:00
Andrew Nicols f0f1caa67d MDL-81306 core: Do not use xsendfile for request dirs 2024-03-28 09:30:07 +08:00
Amaia Anabitarte 355e8b6cf9 MDL-80818 QuickForm: Freeze all elements with the same name
There are some radio buttons in activity Completion Conditions settings
that must be frozen altogether, because all of them have the same name.
2024-03-27 16:24:50 +01:00
Vithusha Uthayakumar f1bb6ea00c MDL-81298 external: fix typo error in failing testcase 2024-03-27 16:48:39 +11:00
Andrew Nicols 5dfcc1aedd Merge branch 'MDL-80332-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-03-26 22:43:37 +08:00
Sara Arjona 211c8caca5 Merge branch 'MDL-81246-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-25 17:01:45 +01:00
Sara Arjona ce8ec44c40 Merge branch 'MDL-80088-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-25 16:20:31 +01:00
Juan Leyva d7a0cb8d00 MDL-80332 tool_mobile: Fallback por app launches 2024-03-25 16:05:07 +01:00
Juan Leyva 7cec5c9b71 MDL-80332 login: New hooks for complete login and passed MFA 2024-03-25 15:56:01 +01:00