108027 Commits

Author SHA1 Message Date
Anupama Sarjoshi
8b31922739 MDL-77148 core: Fix to export params for templates in correct format
When questions are filtered by tags in the question bank, the qtagids
params are passed in the array format. Though moodle_url handles this,
single_button::export_for_template cannot. Hence changes done in
weblib.php to provide params for export_for_template in the
suitable format.
Thanks Huong. I have added the Behat test you provided in the patch.
2023-04-06 14:38:29 +01:00
Eloy Lafuente (stronk7)
127174088a MDL-73610 nodejs: Small updates to required packages
The main goal of this issue is to avoid scanners (Dependabot
and friends), reporting about security issues with the current
xmldom 0.6.0 package.

Note that this doesn't affect prod at all, because it's a dev
dependency, hardly exploitable. So it's not a security fix, just
a security_benefit, if something.

So here, we are updating from xmldom 0.6.0 to @xmldom/xmldom 0.8.7
(note that the package was renamed in 0.7.0, so it's the very same)

Also, when proceeding with the changes, it was detected that we
are incorrectly declaring @babel/eslint-parser as a normal dependency
instead of a development one, so we are also fixing that little detail.

The commands executed to get the changes above applied have been:

- nvm use
- npm install @xmldom/xmldom@^0.8.7 --save-dev
- npm uninstall xmldom
- npm install @babel/eslint-parser@^7.17.0 --save-dev

(we haven't run a complete re-install because we only want to modify
the minimum possible at this stage).
2023-04-06 14:59:43 +02:00
Sara Arjona
f8e2445513 weekly release 4.1.2+ 2023-04-06 14:02:16 +02:00
Sara Arjona
cb8bf1e001 Merge branch 'install_401_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_401_STABLE 2023-04-06 14:02:12 +02:00
Sara Arjona
1f7063cc09 Merge branch 'MDL-75301-fix' of https://github.com/sarjona/moodle into MOODLE_401_STABLE 2023-04-06 08:12:03 +02:00
Sara Arjona
60954253d4 MDL-75301 quiz: Fix failing behat test
I cherry-picked this branch from master (because the current 401
had some conflicts). In master, quiz has been moved to quiz_settings,
so that's why the behat test start failing. Using the proper name
fixes it.
2023-04-06 07:15:57 +02:00
Paul Holden
d49ebb79c5
MDL-77860 tool_moodlenet: use localised language strings for import. 2023-04-05 23:05:23 +01:00
Jun Pataleta
85a7c17414 MDL-77856 qtype_multianswer: Use Bootstrap Popover for subq feedback
The YUI Overlay widget encloses the subquestion feedback in a div
which causes a div element to be enclosed in the subquestion span. This
leads to an accessibility issue in terms of HTML parsing as inline
elements (span) should not contain block elements (div)
The YUI Overlay widget is also not accessible as it does not really hide
the overlay contents via aria-hidden when the overlay is not being
shown. It's better if we stop using this and use Bootstrap's
popover component which is more accessible by default.

This patch also removes module.js for the qtype_multianswer plugin as
it only contains codes related to rendering the feedback contents in the
YUI overlay widget which is no longer necessary.
2023-04-06 05:35:11 +08:00
Sara Arjona
c9b7b94ed4 Merge branch 'MDL-73642_MOODLE_401_STABLE' of https://github.com/tasosb/moodle into MOODLE_401_STABLE 2023-04-05 17:17:35 +02:00
Mark Johnson
0bc265e900 MDL-75301 quiz: Use "always latest" option for question previews
This will set the "alwayslatest" option when previewing a question from
the quiz according to the version setting used in the quiz slot.
2023-04-05 12:50:05 +02:00
Mark Johnson
6417d795b9 MDL-75301 question: Add "always latest" option to previews 2023-04-05 12:49:58 +02:00
Mark Johnson
c55473ad2e MDL-75301 question: Add behat generator for updating questions
This adds "core_question > updated question" as an entity for `the
following "X" exist` and calls the existing update_question() generator
which will create a new question version with the supplied data.
2023-04-05 12:49:51 +02:00
Shamim Rezaie
ddaf4b7a58 Merge branch 'MDL-77555-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-04-05 20:15:39 +10:00
Paul Holden
be58d68f20
MDL-77555 reportbuilder: improve SQL generation within filters.
Use native ANSI SQL syntax for numeric comparisons where possible,
define filter API for the case where filters must re-use the given
field SQL while ensuring uniqueness of any field parameters.

Currently only necessary in the category filter type.
2023-04-05 09:40:31 +01:00
Paul Holden
131d80441a
Merge branch 'MDL-69551_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE 2023-04-05 08:56:45 +01:00
AMOS bot
8a588f963c Automatically generated installer lang files 2023-04-05 00:07:43 +00:00
Juan Leyva
4e32a42415 MDL-77788 mod_assign: Apply format_string to group names in WS 2023-04-04 18:11:03 -03:00
Tim Hunt
aa9a462a4b MDL-69551 quiz: start quiz password field should be a passwordunmask
This help accessibility and usability
2023-04-04 12:19:49 +01:00
Paul Holden
571c59b60e
Merge branch 'MDL-77712-401' of https://github.com/laurentdavid/moodle into MOODLE_401_STABLE 2023-04-04 12:06:42 +01:00
Paul Holden
360f9e37f8
MDL-77012 editor_tiny: correct block formats property syntax.
Co-authored-by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
2023-04-04 09:53:20 +01:00
Andrew Nicols
65ba7df04b Merge branch 'MDL-77584-401' of https://github.com/ewallah/moodle into MOODLE_401_STABLE 2023-04-04 12:07:23 +08:00
AMOS bot
02aed7f6fc Automatically generated installer lang files 2023-04-04 00:07:43 +00:00
Paul Holden
2a4f86051b
Merge branch 'MDL-75906-401' of https://github.com/mickhawkins/moodle into MOODLE_401_STABLE 2023-04-03 14:54:05 +01:00
Paul Holden
701541f35b
Merge branch 'MDL-77227-401' of https://github.com/aanabit/moodle into MOODLE_401_STABLE 2023-04-03 10:56:19 +01:00
Sara Arjona
839681dc77 Merge branch 'MDL-77807-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-04-03 11:53:19 +02:00
Michael Hawkins
b33e5466df MDL-75906 core: Updated security.txt expiry 2023-04-03 17:27:30 +08:00
Laurent David
fbbdfefdb6 MDL-77712 core_course: Fix exception with inplace editor
* On fresh install, an exception is raised when we try to modify
the name of a newly inserted activity in the front page
2023-04-03 10:43:11 +02:00
Ferran Recio
8656271a63 MDL-77552 core_courseformat: add plugin and module to cm state
Backport of MDL-77386
2023-04-03 09:35:08 +02:00
Ilya Tregubov
e1f3e7f232 Merge branch 'MDL-77603' of https://github.com/ilyatregubov/moodle into MOODLE_401_STABLE 2023-04-03 10:03:53 +08:00
Andrew Nicols
f6c4303c58 MDL-77603 theme_boost: Add reference to CL update 2023-04-03 10:02:41 +08:00
Petr Skoda
134dc470c7 MDL-77603 theme_boost: remove Bootstrap version reference 2023-04-03 10:02:36 +08:00
Petr Skoda
45cd887f3b MDL-77603 tool_componentlibrary: import Bootstrap v4.6.2 2023-04-03 10:02:31 +08:00
Petr Skoda
b65ec774c5 MDL-77603 theme_boost: import Bootstrap v4.6.2 2023-04-03 10:02:19 +08:00
AMOS bot
215e9f0688 Automatically generated installer lang files 2023-04-02 00:07:37 +00:00
AMOS bot
035ebed95b Automatically generated installer lang files 2023-04-01 00:07:46 +00:00
Paul Holden
a78f3a02c6
weekly release 4.1.2+ 2023-03-31 18:11:53 +01:00
Paul Holden
2890546f44
Merge branch 'install_401_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_401_STABLE 2023-03-31 18:11:51 +01:00
Jake Dallimore
a1df38dfc6 Merge branch 'MDL-59175-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-03-31 11:57:27 +08:00
Jake Dallimore
82f9585f55 Merge branch 'MDL-77794-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-03-31 11:48:42 +08:00
Andrew Nicols
0f092b86b5 Merge branch 'MDL-77783-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-03-31 11:31:05 +08:00
Ilya Tregubov
74f3c34cbf Merge branch 'MDL-70976-401' of https://github.com/laurentdavid/moodle into MOODLE_401_STABLE 2023-03-31 09:41:45 +08:00
AMOS bot
1f337e7665 Automatically generated installer lang files 2023-03-31 00:07:40 +00:00
Paul Holden
fbb6dc4ca3
MDL-77807 files: normalise file entity size/type column fields.
The `filename` field was only used by each to determine whether the
file was itself a directory, and it's presence meant that aggregation
of each column wasn't working properly.
2023-03-30 20:46:57 +01:00
Laurent David
ab3a244568 MDL-77456 core_courseformat: Fix highlight in course index
* When navigating to a restricted activity as a student from the course index
the item is not highlighted when refreshing the page.
2023-03-30 18:57:33 +02:00
Sara Arjona
7b13a543ad Merge branch 'MDL-77761-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-03-30 17:53:20 +02:00
Sara Arjona
dd10dead0f Merge branch 'MDL-77764-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-03-30 16:31:21 +02:00
Paul Holden
b84a48d1ee
Merge branch 'MDL-76481_401_Brickfield_TCPDF_error' of https://github.com/brickfield/moodle into MOODLE_401_STABLE 2023-03-30 12:50:09 +01:00
Sara Arjona
3794210019 Merge branch 'MDL-77762-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-03-30 13:45:18 +02:00
Jun Pataleta
cca75ca956 Merge branch 'MDL-77333_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE 2023-03-30 19:03:40 +08:00
Paul Holden
93c91af6a9
Merge branch 'MDL-77773-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2023-03-30 10:41:20 +01:00