114201 Commits

Author SHA1 Message Date
Andrew Nicols
a4484911bf
MDL-80741 mod_assign: Move upgrade notes 2024-05-24 09:25:29 +07:00
Andrew Nicols
f5c2bb717e
MDL-78198 file: Stop sending the Accept-Charset header in curl
See notes on:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset

Warning: Do not use this header. Browsers omit this header and servers
should ignore it.

The Accept-Charset request HTTP header was a header that advertised a
client's supported character encodings. It is no longer widely used.

UTF-8 is well-supported and the overwhelmingly preferred choice for
character encoding. To guarantee better privacy through less
configuration-based entropy, all browsers omit the Accept-Charset
header.
2024-05-23 22:16:46 +08:00
Paul Holden
9fec520814
MDL-82004 assignsubmission_onlinetext: no concatenation in lang strings. 2024-05-23 13:06:25 +01:00
Huong Nguyen
48bc966a59
Merge branch 'MDL-81914-main' of https://github.com/andrewnicols/moodle 2024-05-23 11:01:38 +07:00
Huong Nguyen
1776003d39
MDL-81407 core_question: Update upgrade.txt file to document new upgrade note 2024-05-23 10:37:46 +07:00
Huong Nguyen
f2af8e005f
Merge branch 'MDL-81407' of https://github.com/AnupamaSarjoshi/moodle 2024-05-23 10:33:36 +07:00
Huong Nguyen
22859fa326
Merge branch 'MDL-81992' of https://github.com/timhunt/moodle 2024-05-23 09:44:55 +07:00
Huong Nguyen
571d3d8821
Merge branch 'MDL-81862' of https://github.com/paulholden/moodle 2024-05-23 08:47:27 +07:00
Paul Holden
2ccdcca928
MDL-81870 core: re-factor duplicate plugin savepoint implementations. 2024-05-22 20:59:43 +01:00
Paul Holden
5f8aaf220f
MDL-81870 core: validate component during upgrade task savepoint. 2024-05-22 20:59:42 +01:00
Tim Hunt
38227bbcc2 MDL-81992 question bank: disable create question button until ready
Previously, you could click the button before it was ready, and that
just led to an error, which was very silly usability.
2024-05-22 16:11:08 +01:00
Daniel Ziegenberg
6cdbcda8fd
MDL-78768 grade: fix import multiple new grade items
Prior to this change, when importing grades from .csv (or another
method) and you choose to map the grades to a 'New grade item', you get
the following error message:
```
"Mapping collision detected - two fields maps to the same grade item
new."
```
A workaround existed that required users to import one column at a time,
which was cumbersome.

This change fixes importing multiple new grade items and adds a behat
test.

Co-authored-by: hehe009 <max_kan@hotmail.com>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-05-22 12:21:22 +02:00
Paul Holden
493be63757
MDL-80208 cachestore_redis: ensure empty set many with TTL don't throw. 2024-05-21 22:33:07 +01:00
Shamim Rezaie
633fde271f Merge branch 'MDL-80741-main' of https://github.com/mihailges/moodle 2024-05-22 01:28:46 +10:00
Mihail Geshoski
d5e7960139 MDL-80741 mod_assign: Remove 'none' from 'attemptreopenmethod' setting
The default option "ASSIGN_ATTEMPT_REOPEN_METHOD_NONE" for the
"attemptreopenmethod" setting, which disallows multiple attempts at the
assignment, has been removed. This option was unnecessary because
limiting attempts to 1 through the "maxattempts" setting achieves the
same behavior.
Apart from removing this setting option (including removal of usage in
code and updating existing data in the DB), these changes include:
- Introducing a more effective progressive disclosure by allowing the
  "maxattempts" setting to control the visibility of the
  "attemptreopenmethod" setting in the form.
- String improvements to the labels and help text for the "maxattempts"
  and "attemptreopenmethod" settings
- Changing the default value of the "maxattempts" setting from
  "unlimited" to "1"
2024-05-21 23:05:18 +08:00
Santosh Nagargoje
ba9f418632 MDL-81631 backup: Added null parameter fix 2024-05-21 17:10:32 +05:30
Daniel Ziegenberg
e55496ae2a
MDL-73735 course: remove duplicate line of code
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Co-authored-by: Davo Smith <davo.smith@synergy-learning.com>
2024-05-21 13:11:20 +02:00
Huong Nguyen
5d5726d86d
Merge branch 'MDL-81652-main' of https://github.com/lucaboesch/moodle 2024-05-21 17:33:30 +07:00
Huong Nguyen
b4783d39dd
Merge branch 'MDL-76765-main' of https://github.com/lucaboesch/moodle 2024-05-21 17:28:23 +07:00
Carlos Castillo
8c4c52bc31 MDL-81983 admin: Remove double capability check 2024-05-21 12:16:37 +02:00
Huong Nguyen
37c79e282d
MDL-74581 grade: Update upgrade.txt file to document new upgrade note 2024-05-21 16:51:30 +07:00
Huong Nguyen
5fb2dd40fa
Merge branch 'MDL-74581' of https://github.com/paulholden/moodle 2024-05-21 16:45:35 +07:00
Huong Nguyen
eaf2fe4f8a
Merge branch 'MDL-81538-main' of https://github.com/rezaies/moodle 2024-05-21 16:31:35 +07:00
Huong Nguyen
1de7c31ddd
MDL-81125 core: Fix illegal whitespace 2024-05-21 15:42:48 +07:00
Huong Nguyen
1b02c68e72
MDL-81125 core: Fix minor typos 2024-05-21 15:35:15 +07:00
Huong Nguyen
bd9631bda5
Merge branch 'MDL-81125-main-alt' of https://github.com/andrewnicols/moodle 2024-05-21 15:33:09 +07:00
Paul Holden
62783eeef2
MDL-81862 mod_assign: add activity field files for backup/restore. 2024-05-21 09:05:58 +01:00
Ilya Tregubov
c3453a270c Merge branch 'MDL-81318' of https://github.com/paulholden/moodle 2024-05-21 12:48:51 +08:00
Shamim Rezaie
bf85928261 Merge branch 'MDL-80599-main-2' of https://github.com/ilyatregubov/moodle 2024-05-21 14:22:45 +10:00
Huong Nguyen
1102b53db8
Merge branch 'MDL-81948-main' of https://github.com/ferranrecio/moodle 2024-05-21 10:02:57 +07:00
Huong Nguyen
ca329dbe22
Merge branch 'MDL-81904' of https://github.com/paulholden/moodle 2024-05-21 09:43:31 +07:00
Huong Nguyen
fc42f2f131
Merge branch 'MDL-80583-main' of https://github.com/stevandoMoodle/moodle 2024-05-21 09:24:16 +07:00
Luca Bösch
afbe926cb5 MDL-76765 qtype_ddmarker: Show multiple tries options correctly. 2024-05-20 22:07:05 +02:00
Luca Bösch
f080e65500 MDL-76765 question: Show multiple tries options correctly. 2024-05-20 22:07:05 +02:00
Luca Bösch
f0b8121993 MDL-81652 qtype_multianswer: Tackle Bootstrap 5 compatibility. 2024-05-20 21:29:39 +02:00
Paul Holden
f1bc57e220
MDL-81822 tool_licensemanager: slightly relax license shortname type.
The "*-4.0" license versions could not be managed currently.
2024-05-20 17:44:42 +01:00
Andrew Nicols
0964cd5b69
MDL-81125 core: Update upgrade.txt files to document new upgrade notes 2024-05-20 22:26:45 +08:00
Andrew Nicols
b7d029ab69
MDL-81125 core: Add tooling to generate developer upgrade notes
Usage:

    node .grunt/upgradenotes.mjs

      OR

    npm run upgradenote

Arguments can be provided to specify the issue number, component,
message, and type of change.

    node .grunt/upgradenotes.mjs -- \
        -c [component] \
        -i [issue number] \
        -t [type] \
        -m [message]

        OR

    npm run upgradenote -- \
        -c [component] \
        -i [issue number] \
        -t [type] \
        -m [message]

Summary Markdown files can be created using:

    node .grunt/upgradenotes.mjs summary

Weekly release files can be created using:

    node .grunt/upgradenotes.mjs release

Final release files can be created using:
using:
    node .grunt/upgradenotes.mjs release [version]

Generally speaking the integration team will be responsible for updating
the UPGRADING.md notes as part of the weekly integration processes.
2024-05-20 22:26:44 +08:00
Leon Stringer
b87fbc83f6 MDL-81970 plagiarism: Callbacks wrong way round 2024-05-20 10:58:29 +01:00
Paul Holden
ca42ec08a7
MDL-81904 mod_feedback: show export questions only if any present. 2024-05-20 09:27:41 +01:00
Stevani Andolo
e5c3199dff MDL-80583 communication_matrix: Ignore unreachable matrix server 2024-05-20 15:09:54 +08:00
Huong Nguyen
9048345750
MDL-80911 Course: Fix missing required files 2024-05-20 10:05:41 +07:00
Huong Nguyen
adde5efaf5
Merge branch 'MDL-81929' of https://github.com/paulholden/moodle 2024-05-20 09:19:55 +07:00
Anupama Sarjoshi
691b87e077 MDL-81407 qbank_columnsortorder: Fix error displaying hiddencols
When the question custom fields were deleted, if there were any
hidden columns in qbank Column sort order referring those fields they
were throwing 'Custom field does not exist' exception. Changes done to
ignore such fields and display valid hiddencols, as these references
were breaking the qbank Column sort order and Question bank pages.
2024-05-19 08:51:50 +01:00
Andrew Nicols
4cbc81c7ea
MDL-80275 core: Move disable_output_buffering to setup.php
This method is the only reason stopping lib/setuplib.php from being
included after the autoloader and it is single-purposed.
2024-05-18 21:03:54 +08:00
Paul Holden
87d61cf845
MDL-77195 auth_shibboleth: format plugin login name configuration. 2024-05-17 13:47:21 +01:00
Daniel Ziegenberg
4098184c77
MDL-80640 lib: Update Guzzle library
- GuzzleHttp/Guzzle 7.8.1
- GuzzleHttp/Promises 2.0.2
- GuzzleHttp/PSR7 2.6.2
- Guzzle cache middleware 5.1.0

This brings PHP 8.3 support for Guzzle.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-05-17 14:26:37 +02:00
Paul Holden
2046151a9f
MDL-81955 assignfeedback_editpdf: ensure ghostscript present in tests. 2024-05-17 10:21:36 +01:00
ferranrecio
1df56368ac MDL-81948 theme: fix fallback layout logic
Finding the page layout fallback was trying to get a default layout from
the ancient theme called "base". This default theme do not exists
anymore and defining a wrong layout in a theme is a code mistake that
should not be bypassed.
2024-05-17 10:38:22 +02:00
Andrew Nicols
a15301b69b
MDL-80275 core: Include autoloader if ABORT_AFTER_CONFIG
This change moves the inclusion of the Moodle class autoloader to above
the ABORT_AFTER_CONFIG handler.
2024-05-17 12:45:44 +08:00