101123 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
413551656d Merge branch 'MDL-71659-master-missinggradeitem' of git://github.com/mudrd8mz/moodle 2021-05-24 23:22:59 +02:00
Jun Pataleta
85dc1ec358 Merge branch 'MDL-60431' of https://github.com/jonof/moodle 2021-05-21 08:56:08 +08:00
Jonathon Fowler
be65ee093d MDL-60431 qtype_calculated: handle NAN and INF calculation outcomes
With significant-digits presentation mode, NAN would be formatted as
'NAN' followed by zeroes, which looks silly, and +INF would cause an
execution timeout as Moodle tries to divide +∞ by 10 until it becomes
less than 1, which can happen in a divide-by-zero situation.

Note that the user can't answer NAN or INF to any question, but at this
at least now looks consistent and also doesn't break Moodle in the case
of +INF.
2021-05-21 09:36:06 +10:00
Sara Arjona
efb3d4e7a7 weekly release 4.0dev 2021-05-20 11:09:00 +02:00
Sara Arjona
19eef15774 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-05-20 11:08:57 +02:00
Jun Pataleta
97429f82b4 Merge branch 'MDL-71157-master' of git://github.com/sarjona/moodle 2021-05-20 12:30:15 +08:00
abgreeve
de3f8e1240 Merge branch 'MDL-65203-master' of https://github.com/dcai/moodle 2021-05-20 11:10:07 +08:00
Andrew Nicols
df7bbf713e Merge branch 'MDL-71647' of https://github.com/paulholden/moodle 2021-05-20 10:49:13 +08:00
Andrew Nicols
da8787d68d Merge branch 'MDL-71626' of https://github.com/paulholden/moodle 2021-05-20 09:32:06 +08:00
Eloy Lafuente (stronk7)
ba4a7b8ccb Merge branch 'MDL-71126-master' of git://github.com/HuongNV13/moodle 2021-05-19 23:02:41 +02:00
Eloy Lafuente (stronk7)
731a1ea04d Merge branch 'MDL-67935-master' of git://github.com/sarjona/moodle 2021-05-19 22:50:02 +02:00
Eloy Lafuente (stronk7)
e27f6c2060 Merge branch 'MDL-71373-master' of git://github.com/lucaboesch/moodle 2021-05-19 19:36:04 +02:00
Luca Bösch
1c7dc8fa6e MDL-71373 tool_usertours: localize "previous"/"next" in user tours.
AMOS BEGIN
        CPY [previous,core],[previousstep,tool_usertours]
        CPY [next,core],[nextstep,tool_usertours]
       AMOS END
2021-05-19 09:55:30 +02:00
Sara Arjona
fd8dabc9fe MDL-71157 block_myoverview: remove wait from behat
The step "And I wait until ".block_myoverview
[data-control='next']" "css_element" exists" is not correct
because this [data-control='next'] element exists before and
after the step so, in some cases, it might cause the following
step will start earlier than expected.
As pending JS has been added, this wait steps are not required
any more.
2021-05-19 09:43:04 +02:00
Andrew Nicols
dfaa450621 MDL-71157 core: Pending JS in paged content bars 2021-05-19 09:30:15 +02:00
Eloy Lafuente (stronk7)
c494791f30 Merge branch 'MDL-71619' of https://github.com/paulholden/moodle 2021-05-18 22:59:13 +02:00
Eloy Lafuente (stronk7)
29b15b76e2 Merge branch 'MDL-71373-master' of git://github.com/lucaboesch/moodle 2021-05-18 22:41:42 +02:00
David Mudrák
a949a151f3 MDL-71659 completion: Consider modules without grade_item incomplete
Activity modules may not have the associated grade_item created yet. It
used to throw fatal error in that case - even when trying to view the
course or edit the activity. So there was no easy way to recover from
this situation.

The patch is based on reasoning that an activity without grade item is
same as activity without any grades. And as such it is considered
incomplete.

A new unit test is added to cover this specific scenario. The existing
unit test is modified and it does not expect the exception any more.
There does not seem to be any good reason why this situation should be
exceptional.
2021-05-18 20:59:51 +02:00
Dongsheng Cai
ee58790e46 MDL-65203 template: tab should be quoted to produce valid json 2021-05-18 20:40:32 +10:00
AMOS bot
69c2aece33 Automatically generated installer lang files 2021-05-18 00:07:58 +00:00
Paul Holden
dc9e6cb8f7 MDL-71647 user: allow searching user selector by identity fields.
Fixes regression from d916cd77, which passed empty extra fields when
not including custom fields.
2021-05-17 16:01:07 +01:00
Luca Bösch
19d7c11b60 MDL-71373 core_enrol: localize "close" in role manager. 2021-05-14 14:18:52 +02:00
Luca Bösch
9df96bea34 MDL-71373 tool_usertours: localize "previous"/"next" in user tours. 2021-05-14 14:18:52 +02:00
Luca Bösch
8c411f1234 MDL-71373 core_table: localize "previous"/"next" in pagination. 2021-05-14 14:18:52 +02:00
Huong Nguyen
46aece2b63 MDL-71126 Quiz: Manual grading page size preference can get stuck at 0
Including in this change:
 - New positiveint regex rule to check if the value is a positive integer
2021-05-14 17:01:45 +07:00
Sara Arjona
0b69b37f04 weekly release 4.0dev 2021-05-14 11:06:18 +02:00
Sara Arjona
49143009e9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-05-14 11:06:16 +02:00
Sara Arjona
c2a1bb5545 MDL-67935 tool_lp: fix random errors with login/logout 2021-05-14 10:11:12 +02:00
AMOS bot
b227f8eac1 Automatically generated installer lang files 2021-05-14 00:07:53 +00:00
Víctor Déniz
e64a080089 Merge branch 'MDL-71569-master_Summarydata' of https://github.com/brickfield/moodle 2021-05-13 22:34:11 +01:00
Paul Holden
605c8940a2 MDL-71626 admin: filter site fullname in CLI maintenance script. 2021-05-13 19:57:28 +01:00
Paul Holden
21c3869d03 MDL-71619 privacy: extend correct class in provider testcases.
Extending the privacy provider testcase means that it's tearDown
method will reset the request writer.
2021-05-13 11:51:00 +01:00
Sara Arjona
639707d8a2 Merge branch 'MDL-71611-master_blockaccessreviewupgrade' of https://github.com/brickfield/moodle 2021-05-13 11:45:36 +02:00
Jun Pataleta
95dcd99d85 Merge branch 'MDL-71612-master' of https://github.com/snake/moodle 2021-05-13 14:30:24 +08:00
Jun Pataleta
97b623aa9b Merge branch 'MDL-71584-master_Languagestrings' of https://github.com/brickfield/moodle 2021-05-13 13:57:22 +08:00
Jake Dallimore
0fcf1a1b7a MDL-71612 tool_oauth2: remove erroneous hideIf rules for form fields
Some fields were being hidden based on whether the service was set up
for internal service use or was a service shown on the login page.
These fields refer to OAuth 2 logins and must be configurable for both
kinds of services.
2021-05-13 12:47:58 +08:00
Eloy Lafuente (stronk7)
d88452fd29 Merge branch 'MDL-71580-master-enfix' of git://github.com/mudrd8mz/moodle 2021-05-12 22:58:12 +02:00
Mike Churchward
0ebe676416 MDL-71611 block_accessreview: Return formats if feature disabled. 2021-05-12 16:29:09 -04:00
David Mudrák
03402e3c5d MDL-71580 lang: Fix reworded strings in tests 2021-05-12 17:10:16 +02:00
Helen Foster
c8dc7bc942 MDL-71580 lang: Import fixed English strings (en_fix) 2021-05-12 17:10:16 +02:00
Mike Churchward
13fb58c663 MDL-71584 tool_brickfield: Fixed up language string issues. 2021-05-12 08:44:01 -04:00
Jun Pataleta
485ad2df85 Merge branch 'MDL-71590-master' of git://github.com/HuongNV13/moodle 2021-05-12 13:25:53 +08:00
Huong Nguyen
c310c64460 MDL-71590 usertours: Create language string for activity information 2021-05-12 11:35:24 +07:00
Jake Dallimore
a8a48a97bd Merge branch 'MDL-71583' of https://github.com/stronk7/moodle 2021-05-12 10:35:34 +08:00
Karen Holland
aa8690f79d MDL-71569 Accessibility toolkit: Fix Summary data task failure 2021-05-11 19:46:31 -04:00
Eloy Lafuente (stronk7)
9d6aa39985 MDL-71583 versions: Add all the missing full-stops to version/requires
It seems that the new phpcs3 checker is now controlling those
line comments that previously were ignored.

This commit just looks for all the cases and bulk-add
them when needed. The bash script (mac) used to add all them is:

while read -r line; do
    arr=(${line//:/ })
    if [[ -n ${arr[0]} ]] && [[ -n ${arr[1]} ]]; then
        echo "  file ${arr[0]}, line ${arr[1]}"
        sed -i "${arr[1]}s/\$/\./" ${arr[0]}
    fi
done < <(find . -name version.php | xargs ag --nomultiline '>(version|requires) *=.*//.*[^;\.]$')
2021-05-11 20:11:07 +02:00
Sara Arjona
3da88a7664 weekly release 4.0dev 2021-05-11 12:42:28 +02:00
Sara Arjona
349c0e503e Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-05-11 12:42:25 +02:00
AMOS bot
9c638cf22b Automatically generated installer lang files 2021-05-11 00:07:55 +00:00
Víctor Déniz
823dd4ec6a Merge branch 'MDL-71060-master' of https://github.com/NashTechOpenUniversity/moodle 2021-05-10 23:40:53 +01:00