Mihail Geshoski
b7bef8f297
MDL-47410 behat: Support date selection from the date selector element
...
Adds behat support for selecting a date from the date selector element.
The passed values should represent a textual date description wrapped
in '##' (e.g. '##first day of January 2020##', '##1 Jan 2020##'). Also,
the value 'disabled' is valid and can be used to disable the date
selector element.
2021-02-11 11:58:44 +08:00
Mihail Geshoski
afd1cf81b5
MDL-47410 behat: Create custom selector for the date and datetime fields
...
Creates a custom field selector to locate the requested date or datetime
form fields.
2021-02-11 11:49:18 +08:00
Mihail Geshoski
dbb58833ba
MDL-47410 behat: Move logic from guess_type() to a separate method
...
Moves the logic from guess_type() to a separate protected method
get_field_instance_for_element(). This would be quite useful for
form field classes as they can now use this method when there is
a need to determine the type of a given node element.
2021-02-11 11:40:30 +08:00
Mihail Geshoski
896364e4c4
MDL-47410 behat: Use data-fieldtype attribute to guess the field type
...
The data-fieldtype attribute (if present) should be also utilized in
guess_field_type() and match the behavior in get_field_node_type().
2021-02-11 11:38:00 +08:00
Mihail Geshoski
d46f1a3ef4
MDL-47410 form: Add data-fieldtype attribute to checkbox inline element
...
Includes the data-fieldtype attribute to the checkbox inline form
element. This element does not extend the parent inline element
template due to its specific nature and therefore this attribute was
missing.
2021-02-11 11:36:27 +08:00
Brendan Heywood
6b48a24cc6
MDL-70766 auth: Add all auth plugin changes to configlog
2021-02-11 11:05:25 +11:00
Sara Arjona
fd31854480
Merge branch 'MDL-70732-master' of git://github.com/aanabit/moodle
2021-02-10 17:20:22 +01:00
Sara Arjona
3b15de89c7
Merge branch 'MDL-70796' of https://github.com/timhunt/moodle
2021-02-10 16:50:04 +01:00
Sara Arjona
3a5fcbe6e6
Merge branch 'MDL-70631-master-unzip' of git://github.com/mudrd8mz/moodle
2021-02-10 12:38:03 +01:00
Sara Arjona
4f3d90b6a9
Merge branch 'master-MDL-65390' of https://github.com/yao9394/moodle
2021-02-09 15:10:42 +01:00
Sara Arjona
08d1538313
Merge branch 'MDL-70282-oauth2_improve_error' of https://github.com/leonstr/moodle
2021-02-09 11:04:54 +01:00
Sara Arjona
1d6b734108
Merge branch 'MDL-70173-master' of git://github.com/rezaies/moodle
2021-02-09 08:29:13 +01:00
Shamim Rezaie
6df239900e
MDL-70173 core: Use a meaningful first level header
2021-02-09 16:16:09 +11:00
Shamim Rezaie
c0e3a4108c
MDL-70173 output: All pages should have a heading
...
In MDL-63040, it was decided that the page header for the dashboad page
should be removed.
However, Based on Success Criteria 1.3.1 and 2.4.6 from the WebAIM's
WCAG 2 Checklist, all pages should have an <h1> element.
So I put an sr-only heading on the dashboard and all other pages, where
no page header is shown.
2021-02-09 16:16:09 +11:00
Shamim Rezaie
b0b3a53521
MDL-70173 output: use an empty alt to hide user pic from screen readers
...
There is no need to use WAI-ARIA to hide images from screen readers.
See https://www.w3.org/WAI/tutorials/images/decorative/
2021-02-09 16:16:09 +11:00
Tomo Tsuyuki
6581cb7137
MDL-70525 tool_profiling: Cannot import profiling file
...
Change type from int to integer to be able to have big numbers
2021-02-09 09:45:45 +11:00
Andrew Nicols
f5e348ac3e
Merge branch 'MDL-69898' of https://github.com/paulholden/moodle
2021-02-08 10:48:29 +08:00
Andrew Nicols
98a261b6ea
Merge branch 'MDL-70614' of git://github.com/paulholden/moodle
2021-02-08 10:34:46 +08:00
Andrew Nicols
5cef15ea60
Merge branch 'MDL-70725-master' of git://github.com/sarjona/moodle
2021-02-08 10:33:52 +08:00
Brendan Heywood
a87ddbd685
MDL-70536 cli: Fixed cli progress bar when 100% more than once
2021-02-07 00:36:01 +11:00
Tim Hunt
6c7cf1123e
MDL-70796 count_words: match the count from LibraOffice & MS Word
2021-02-05 11:59:48 +00:00
Amaia Anabitarte
248d4ff200
MDL-70732 behat: Adding second parameter to ExpectationException()
2021-02-05 11:01:22 +01:00
John Yao
b964ba6373
MDL-65390 accessibility: correct focus after "Show more" clicked
2021-02-05 12:15:21 +11:00
Andrew Nicols
6995888454
Merge branch 'MDL-69748-master' of git://github.com/rezaies/moodle
2021-02-04 11:51:57 +08:00
Shamim Rezaie
a321181fe6
MDL-69748 core: Fix hideif issue with array elements
...
Changed the element selector to get all array elements,
whether named or unnamed. The previus selector was only
working for elements that thir names were like name="something[]".
It was not working for name="something[a]" elements.
2021-02-04 14:37:40 +11:00
Andrew Nicols
0377b0f9fa
Merge branch 'MDL-64866-master' of git://github.com/ilyatregubov/moodle
2021-02-04 11:37:01 +08:00
Andrew Nicols
031509861b
Merge branch 'MDL-70579' of git://github.com/paulholden/moodle
2021-02-04 09:28:22 +08:00
David Mudrák
6109e8b272
MDL-70631 files: Replace hard-coded value with FL_ENC_RAW constant
...
This is not related to the issue but I noticed it while trying to debug
it.
Back when this line was introduced in 9c140a681e
, the ZipArchive had
not yet exposed this flag as a constant. It was added later with PHP
7.0.8 and we can switch to using it now.
2021-02-03 16:06:39 +01:00
David Mudrák
b227b6ea45
MDL-70631 files: Fix performance of zip_packer::extract_to_pathname()
...
The original implementation was based on ZipArchive::getStream() which
turns out to be very slow and if the archive contains many files, the
unzipping performance is very slow.
The patch changes the implementation to use ZipArchive::extractTo()
unless the extracted entry path contains a folder name ending with dot
(such as some/path./to/file.txt). There is a known upstream bug in the
PHP ZIP extension #77214 (also #74619 and #69477 ) so that we fall back
to keep using the stream in those cases.
2021-02-03 16:06:39 +01:00
Sara Arjona
407133af76
Merge branch 'MDL-70315' of git://github.com/paulholden/moodle
2021-02-03 16:04:16 +01:00
Sara Arjona
1e5a862c93
Merge branch 'MDL-70316-master' of git://github.com/mihailges/moodle
2021-02-03 15:29:23 +01:00
David Castro
15527bf4a8
MDL-69562 admin: Allow getting IP from all sources.
2021-02-03 07:23:36 -05:00
Eloy Lafuente (stronk7)
3d276111e1
Merge branch 'MDL-70711-master' of git://github.com/kordan/moodle
2021-02-03 13:03:50 +01:00
Sara Arjona
09cfed9186
Merge branch 'MDL-70439-master' of https://github.com/DinhHien0307/moodle
2021-02-03 13:03:02 +01:00
Sara Arjona
3abda98a2d
Merge branch 'MDL-70163' of git://github.com/paulholden/moodle
2021-02-03 12:25:28 +01:00
Sara Arjona
a35c197a4a
Merge branch 'MDL-66769-master' of git://github.com/ilyatregubov/moodle
2021-02-03 09:32:30 +01:00
Ilya Tregubov
dde8a5b62c
MDL-66769 core_h5p: Clean up orphaned h5p records task.
2021-02-03 10:10:30 +02:00
Andrew Nicols
a35c7f5dce
Merge branch 'MDL-70583-cli-progress' of https://github.com/brendanheywood/moodle
2021-02-03 08:27:05 +08:00
Brendan Heywood
ded82b7f5b
MDL-70583 cli: Allow progress bars to be rendered in cli scripts
2021-02-02 22:07:14 +11:00
Andrew Nicols
1432180138
Merge branch 'MDL-70304-master' of git://github.com/ilyatregubov/moodle
2021-02-02 15:31:52 +08:00
Sara Arjona
f756d2afbe
Merge branch 'MDL-70288-master-2' of git://github.com/junpataleta/moodle
2021-02-02 07:59:28 +01:00
Ilya Tregubov
e174f19db6
MDL-70304 core: updated adapter.js to 7.4.0
2021-02-02 08:58:30 +02:00
Jun Pataleta
e3457dc4aa
MDL-70288 core: Remove duplicate labels for checkbox elements
...
* If there's a label, the text will serve as the description of the
element.
2021-02-02 13:11:58 +08:00
Eloy Lafuente (stronk7)
43b36f6d68
Merge branch 'MDL-46256' of https://github.com/timhunt/moodle
2021-02-01 23:20:01 +01:00
Eloy Lafuente (stronk7)
cd4d387936
Merge branch 'MDL-70648-master' of git://github.com/lameze/moodle
2021-02-01 19:13:47 +01:00
Paul Holden
a01397bdce
MDL-69898 admin: link to config changes report from logged event.
2021-02-01 09:14:06 +00:00
Paul Holden
43adc7a333
MDL-70614 user: consistent roles spacing in course profile.
2021-02-01 07:55:04 +00:00
Andrew Nicols
793f131019
MDL-70734 behat: Increase the WebDriver Curl timeout
2021-01-31 18:21:41 +08:00
Jake Dallimore
9a4cfdeabb
Merge branch 'MDL-66979-master-7' of git://github.com/andrewnicols/moodle
2021-01-29 15:41:03 +08:00
Andrew Nicols
bead2a1d96
MDL-66979 behat: Add a step to set a timeout factor for a test
2021-01-29 14:15:24 +08:00