101932 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
09825b1a9a Merge branch 'MDL-71614-fix' of github.com:sarjona/moodle 2021-09-08 16:32:43 +02:00
Sara Arjona
573b035122 MDL-71614 qbank_previewquestion: Add role button to Preview 2021-09-08 16:13:57 +02:00
Sara Arjona
37827bb15d MDL-71614 qbank_exporttoxml: Use correct helper class name 2021-09-08 15:27:13 +02:00
Eloy Lafuente (stronk7)
d08cdaadb2 Merge branch 'MDL-72216-master' of git://github.com/lucaboesch/moodle 2021-09-08 11:28:47 +02:00
Jun Pataleta
8b0ea8df44 Merge branch 'MDL-68164-cache_pg_type' of https://github.com/brendanheywood/moodle 2021-09-08 17:02:57 +08:00
Sara Arjona
5c78efaaea Merge branch 'master_MDL-71614-previewquestion' of https://github.com/catalyst/moodle-MDL-70329 2021-09-08 09:29:22 +02:00
Safat Shahin
0d55b26da8 MDL-71614 qbank_previewquestion: Add Preview question plugin to core
This implementation will introduce a qbank plugin "previewquestion"
which will view the preview question action in the question bank
actions by replacing the core classes, scripts and yui modules.
This plugin will also replace the preview option in the edit
question form. Having this plugin will give users the
flexibility of enabling or disabling this feature from
the question bank view.
This change will also allow other qbank plugins to add
elements or information in the preview question page
by implementing a callback. It also changes the pop
up to page redirect from base view page to make sure
any changes in preview reflects in the base view, for
example, comments added and the number of comments in
the comments colum changes while back from the preview
page. Other locations like edit and qtype plugins where
the preview is implemented, stays the same.

Co-Authored-By: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>
Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
2021-09-08 16:21:06 +10:00
Eloy Lafuente (stronk7)
c2df50a673 Merge branch 'MDL-72499' of git://github.com/paulholden/moodle 2021-09-07 23:51:53 +02:00
Eloy Lafuente (stronk7)
f014d3635a Merge branch 'MDL-72467' of git://github.com/paulholden/moodle 2021-09-07 23:46:58 +02:00
Eloy Lafuente (stronk7)
252c466bb1 Merge branch 'MDL-72071' of git://github.com/paulholden/moodle 2021-09-07 23:29:35 +02:00
Eloy Lafuente (stronk7)
3ad8d4b097 Merge branch 'MDL-71925-master_wordcount' of https://github.com/brickfield/moodle 2021-09-07 23:25:21 +02:00
Eloy Lafuente (stronk7)
6cd2a9319d Merge branch 'MDL-72488-master-importdatastring' of git://github.com/mudrd8mz/moodle 2021-09-07 22:59:15 +02:00
Eloy Lafuente (stronk7)
b97c021a98 Merge branch 'MDL-69504-master' of https://github.com/snake/moodle 2021-09-07 20:03:45 +02:00
Eloy Lafuente (stronk7)
3a4ad12034 Merge branch 'MDL-67610-master-2' of git://github.com/junpataleta/moodle 2021-09-07 19:25:15 +02:00
Jun Pataleta
58bd7256ec MDL-67610 mod_forum: Do not include private replies in unread count
Fetching the counts of unread posts should only include unread regular
posts or unread private reply posts directed to the user unless the user
has the capability to read private replies.
In order to retrieve the correct counts, we also need to loop through
each forum instance in the course to check the capability of the user to
read private replies in each forum.
2021-09-07 23:19:26 +08:00
Eloy Lafuente (stronk7)
add353c2f5 Merge branch 'MDL-72025-master' of https://github.com/sammarshallou/moodle 2021-09-07 16:30:44 +02:00
Paul Holden
0a33c4aacd MDL-72447 question: require sesskey to toggle plugin enabled state. 2021-09-07 12:10:28 +02:00
Brendan Heywood
66a923fe77 MDL-68164 dml: Cache postgres field type metadata in MUC 2021-09-07 19:29:31 +10:00
Paul Holden
1dfb62cbab MDL-71726 course: respect user access when exporting participants.
We should ensure that users being exported are enrolled on the
course being exported from. In courses where the current user can't
access all groups we should ensure that users being exported belong
to the same groups as them.
2021-09-07 09:04:23 +02:00
Sujith Haridasan
03093b42b8 MDL-71160 auth_db: Use strict comaprison
Use strict comparison to avoid type juggling.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-09-07 09:04:23 +02:00
Paul Holden
d663d92357 MDL-71976 auth_shibboleth: consistent session parsing during logout. 2021-09-07 09:04:23 +02:00
Shamim Rezaie
83b23b86d3 MDL-71240 filter_tex: Sanitize the whole latex document
LaTeX documents have a preamble section and admins can use a \newcommand
statement to define new commands there (or to give an alias to another
command). This commit makes sure no blocked command can escape
sanitization by being used in a new seemingly harmless command that is
defined in the LaTeX preamble.
2021-09-07 09:04:23 +02:00
Shamim Rezaie
e514e6951c MDL-71240 filter_tex: Support paranoid mode for openin_any in latex 2021-09-07 09:04:23 +02:00
Huong Nguyen
af4fb733ee MDL-71797 quiz: Improve the checks when fetching user's attempts 2021-09-07 09:04:23 +02:00
Jun Pataleta
fec5a40ddb Merge branch 'MDL-71671-master' of git://github.com/rezaies/moodle 2021-09-07 14:55:13 +08:00
Jake Dallimore
400186a18d Merge branch 'MDL-72041-master' of git://github.com/sarjona/moodle 2021-09-07 12:31:43 +08:00
Shamim Rezaie
aa49eebd2a MDL-71671 atto_table: Insert menus html after the button 2021-09-07 13:53:50 +10:00
Shamim Rezaie
1e47c534a7 MDL-71671 editor_atto: Insert html of button menus after the button 2021-09-07 13:53:50 +10:00
Shamim Rezaie
b2698f641a MDL-71671 core: Let YUI dialogues be inserted at given position 2021-09-07 13:52:49 +10:00
Eloy Lafuente (stronk7)
fa67938486 Merge branch 'MDL-72286-master-test' of git://github.com/rezaies/moodle 2021-09-06 23:57:27 +02:00
Eloy Lafuente (stronk7)
bf87572e0c Merge branch 'MDL-71639-fix' of github.com:sarjona/moodle 2021-09-06 17:49:22 +02:00
Eloy Lafuente (stronk7)
6afabd5757 Merge branch 'MDL-71641-fix' of github.com:sarjona/moodle 2021-09-06 17:48:58 +02:00
David Mudrák
2a1a00d79f MDL-72488 lang: Fix hard-coded English string at grades import form
Also adding a help tooltip as this seems to be the most important field
in the form and yet it was the only one without a help.
2021-09-06 17:40:46 +02:00
Sara Arjona
7cdb34aacf MDL-71639 qbank_exporttoxml: Use correct helper class name 2021-09-06 15:40:11 +02:00
Sara Arjona
46c1f7c43d MDL-71641 qbank_tagquestion: Fix behat failure with classic 2021-09-06 15:22:44 +02:00
Sara Arjona
2c90221888 Merge branch 'master_MDL-71641-tagquestion' of https://github.com/catalyst/moodle-MDL-70329 2021-09-06 13:06:01 +02:00
Safat Shahin
1db23e818c MDL-71641 qbank_tagquestion: Add Tag question plugin to core
This implementation will introduce a qbank plugin "tagquestion"
which will implement the tag question actions in the question
bank view by replacing the core class. Having this plugin
will give users the flexibility of enabling or
disabling this action.
2021-09-06 20:39:39 +10:00
Paul Holden
51ef7bd6f9 MDL-72499 event: add/correct event language strings as required. 2021-09-06 11:14:09 +01:00
Sara Arjona
3b903ae45d Merge branch 'master_MDL-71585-managecategories' of https://github.com/catalyst/moodle-MDL-70329 2021-09-06 10:39:06 +02:00
Sara Arjona
c467ce725e Merge branch 'MDL-46778-master' of git://github.com/odeialba/moodle 2021-09-06 10:03:07 +02:00
Sara Arjona
a6d27c5b49 Merge branch 'master_MDL-71639-exporttoxml' of https://github.com/catalyst/moodle-MDL-70329 2021-09-06 08:58:20 +02:00
Eloy Lafuente (stronk7)
49b057e4dc Merge branch 'MDL-72428-master-enfix' of git://github.com/mudrd8mz/moodle 2021-09-03 19:09:52 +02:00
David Mudrák
9f8349bdfb MDL-72428 lang: Use the fixed strings in the tests 2021-09-03 17:38:35 +02:00
Helen Foster
92cc461235 MDL-72428 lang: Import fixed English strings (en_fix) 2021-09-03 17:38:35 +02:00
Eloy Lafuente (stronk7)
616e8a0e0b Merge branch 'MDL-72478-master' of git://github.com/sarjona/moodle 2021-09-03 17:02:40 +02:00
Sara Arjona
eb70e8f87e MDL-72478 calendar: Fix PHPUnit failure with offset
Before PHP 8.0.10, the time is lost when datetime->modify() is used
with weekdays. However, with PHP 8.0.10, the time is kept.
In consequence, the test_yearly_every_20th_monday_forever method
started failing.
For fixing it, the offset has been removed and the time has been set
to 00:00, so the behaviour will be the same regardless the PHP
version.
2021-09-03 09:28:46 +02:00
Guillermo Gomez
fb10b36c04 MDL-71585 qbank_managecategories: Add managecategories to core
This implementation will introduce a qbank plugin "managecategories"
which will add the question categories feature in the question bank view
by replacing the core classes. Having this plugin will give users
the flexibility of enabling or disabling the category tab.
2021-09-03 09:41:18 +10:00
Eloy Lafuente (stronk7)
6ae9f22653 Merge branch 'MDL-71014-cache-siteid' of https://github.com/brendanheywood/moodle 2021-09-02 23:00:17 +02:00
Paul Holden
d12eb4943b MDL-72467 tool_task: improve cron status check details. 2021-09-02 17:32:19 +01:00
Sara Arjona
c6d11f0f6c MDL-72041 qformat: Remove WebCT question format
WebCT was acquired by Blackboard in 2006, so qformat_webct has been
completely removed from Moodle core.
2021-09-02 16:16:55 +02:00