24605 Commits

Author SHA1 Message Date
Sara Arjona
7430208d56
MDL-78884 files: Deprecate size parameter for icons
The parameter $size of the following functions has been deprecated and is not used any more:
  - file_extension_icon
  - file_file_icon
  - file_folder_icon
  - file_mimetype_icon
  - mimeinfo_from_type
  - url_guess_icon

That way, the sized icons (xxxxxxx-yyy.png) can be removed and replaced by SVG, to make it easier
to keep them updated because once they are replaced, there will only be one single file for each
MIME icon.
2023-08-23 07:30:16 +02:00
Luca Bösch
daffea8964 MDL-65887 workshop: Recalculate + fill the 'Grade for assessment' column 2023-08-18 08:58:35 +02:00
Andrew Nicols
edf29562cc
Merge branch 'MDL-78576-master' of https://github.com/snake/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols
b71bec8475
Merge branch 'MDL-78684-master' of https://github.com/andelacruz/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols
339820fad1
Merge branch 'MDL-71196' of https://github.com/paulholden/moodle 2023-08-17 09:12:34 +02:00
Jun Pataleta
2870637daa
Merge branch 'MDL-78505/master' of https://github.com/skodak/moodle 2023-08-17 09:10:53 +02:00
Huong Nguyen
8ecb766d53
Merge branch 'MDL-78753-master' of https://github.com/snake/moodle 2023-08-17 09:10:52 +02:00
Huong Nguyen
e1a6cdba0c
Merge branch 'MDL-71909' of https://github.com/NeillM/moodle 2023-08-17 09:10:52 +02:00
Jake Dallimore
42c24a3223
MDL-78576 mod_lti: fail launch early when preconfigured tool not found
In the case where the instance is associated with a preconfigured tool
and where that tool type has since been removed, throw an exception
early.
2023-08-16 23:51:31 +08:00
Jake Dallimore
3a1db3cc47
MDL-78576 mod_lti: improve course tool deletion with contextual messages
Present different deletion messages depending on whether the tool has
usages or not.
2023-08-16 23:51:31 +08:00
Jake Dallimore
e555984880
MDL-78576 mod_lti: move count subselect into report base fields
This gets around a limitation of the RB; its inability to use a column
subselect value in another column. This change permits the use of the
count in more than just the 'usage' column, as the row_callback is able
to set an instance var, usable by other column callbacks.
2023-08-16 23:51:31 +08:00
Petr Skoda
a50c2d4746 MDL-78505 Revert "MDL-32114 form: markdown must be preserved on saving post"
This partially reverts commit 4a31dd69d6d89818f676ece916e573aa894d49d6.
2023-08-15 14:26:59 +02:00
Jake Dallimore
1e886c375c
MDL-78753 mod_lti: fix access control for LTI External tools page
To view this page, the user must be able to use preconfigred tools in
the course. This is controlled by the 'mod/lti:addpreconfiguredinstance'
capability. The capability 'mod/lti:addcoursetool' isn't required to
view the page but does add extra functionality to the page.
2023-08-15 18:03:43 +07:00
Jake Dallimore
f645d21da1
MDL-78753 mod_lti: use course visibility named constant in report params 2023-08-15 09:20:44 +08:00
Jun Pataleta
44787c35bc
Merge branch 'MDL-78528-master' of https://github.com/sarjona/moodle 2023-08-10 18:32:22 +07:00
Jun Pataleta
b8a93b921b
Merge branch 'MDL-78713-master' of https://github.com/snake/moodle 2023-08-10 18:31:51 +07:00
Sara Arjona
8f57f0fdac
MDL-78528 mod: Add suffix support to module completion fields 2023-08-09 09:12:43 +02:00
Rajneel Totaram
b0d1cef0e0 MDL-71728 mod_quiz: check if user can access this page 2023-08-09 04:44:17 +00:00
Sara Arjona
f4c4aad52b
Merge branch 'MDL-78559-master' of https://github.com/rmady/moodle 2023-08-08 13:01:56 +02:00
Jun Pataleta
51e86626d1
Merge branch 'MDL-77174-master' of https://github.com/andrewnicols/moodle 2023-08-08 15:15:32 +08:00
Jake Dallimore
9f7e2cafda
MDL-78713 mod_lti: update lang strings 2023-08-08 13:33:01 +08:00
Angelia Dela Cruz
6385949078 MDL-78684 Behat: Replace gradebook navigation to use page resolvers
This commit also does other things such as:
- Replace manual steps to setup gradebook by data generators
- Added support for outcomes and scales page resolvers
- Behat clean up
2023-08-08 11:53:45 +08:00
Jun Pataleta
567f4c0669
MDL-78498 mod_forum: Prevent race condition in forum recent activity
* Using the generator to create the forum discussions, the timecreated
of a discussion can be set before the user's last course access which
will prevent forum_print_recent_activity() from including this generated
discussion in the recent activity results. To work around this, generate
the forum discussion 1 second after the current time to make sure that
the user's last course access will always be before the discussion's
creation time.
* This patch also includes some optimisations by:
  - Removing the unnecessary @javascript tag for the
    `Time limit expires` scenario
  - Bringing the discussion generation to each scenario to allow each
    scenario to customise the data passed to the generator like for the
    `Time limit expires` scenario.
  - Navigating directly to the forum instance.
2023-08-03 11:31:45 +08:00
Huong Nguyen
3054d43336
Merge branch '45743-forum-trigger-more-events-master' of https://github.com/DSI-Universite-Rennes2/moodle 2023-08-02 15:05:14 +07:00
Sara Arjona
a6affc9271
Merge branch 'MDL-78460' of https://github.com/paulholden/moodle 2023-08-02 08:51:01 +02:00
Jun Pataleta
ce131c354a
Merge branch 'MDL-78498-master' of https://github.com/lameze/moodle 2023-08-02 11:23:18 +08:00
Paul Holden
3b6fcd1f5b
MDL-78575 mod_lti: remove column alias from inner sub-select.
The `usage` alias is a reserved word in MySQL/MariaDB.
2023-08-01 12:46:18 +01:00
Simey Lameze
4e754bd337 MDL-78498 behat: add support for private replies
This commit adds support for private replies in the
'the following forum replies exist in course' custom step.
2023-08-01 13:39:52 +08:00
Angelia Dela Cruz
ebbe96905a MDL-78498 Behat: Use data generators for forum posts and replies
This commit does few things:
* Replace manual forum posts and replies to use data generator.
* It also changes the code to handle social forums.
* Other behat clean-ups and optimization.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-08-01 13:39:52 +08:00
Andrew Nicols
30f7e50770
Merge branch 'MDL-78575-master' of https://github.com/snake/moodle 2023-08-01 09:38:15 +08:00
Paul Holden
334b6c75a4
MDL-71196 completion: final removal of get_completion_state support. 2023-07-31 09:04:03 +01:00
Andrew Nicols
56260354b1
MDL-77174 filemanager: Switch from YUI dialogue to utility modal 2023-07-31 10:57:09 +08:00
Andrew Nicols
222c43f8eb
MDL-77174 mod_quiz: Switch from YUI dialogue to utility modal 2023-07-31 10:56:22 +08:00
Andrew Nicols
d20b272df7
MDL-77174 mod_quiz: Remove usage of moodle-core-nofification-alert 2023-07-31 10:56:21 +08:00
Andrew Nicols
2e706ee5fb
MDL-77174 mod_quiz: Update toolbox to drop YUI confirm module 2023-07-31 10:56:21 +08:00
Ilya Tregubov
01593b9332
Merge branch 'MDL-46279' of https://github.com/danmarsden/moodle 2023-07-27 14:47:13 +08:00
Neill Magill
3a06a2f7dd MDL-71909 assignfeedback_editpdf: Do not queue conversions when not on
Before this change conversion tasks would be queued for assignments that
did not have the pdf annotation method enabled.

The change will also prevent queing when the plugin is disabled.
2023-07-26 08:43:39 +01:00
Jun Pataleta
d8bfb8ff3c
Merge branch 'MDL-70135' of https://github.com/paulholden/moodle 2023-07-26 10:45:55 +08:00
Dan Marsden
a5ae5e6035 MDL-46279 mod_scorm: Fix updating of scorm values on re-entry to scorm. 2023-07-21 19:45:43 +12:00
Huong Nguyen
9317d00bfb
Merge branch 'MDL-78525/master' of https://github.com/skodak/moodle 2023-07-21 11:59:09 +08:00
Ilya Tregubov
74760c0e8f
Merge branch 'MDL-76710-master' of https://github.com/call-learning/moodle 2023-07-21 11:59:08 +08:00
Andrew Nicols
0eaafc713c
Merge branch 'MDL-78280-master' of https://github.com/roland04/moodle 2023-07-21 11:59:05 +08:00
Andrew Nicols
094f5dbb5b
Merge branch 'MDL-77745_master' of https://github.com/marxjohnson/moodle 2023-07-21 11:58:34 +08:00
Mikel Martín
530691b1ca MDL-78280 completion: Fix behat for new completion UI
- The following behat step definitions were modified to work correctly both for course page conditions dialog and activity page
condition badges: 'activity_completion_condition_displayed_as', 'overridden_activity_completion_condition_displayed_as'
and 'activity_should_have_the_completion_condition'.
- Because now "Mark as done" manual completion button is not displayed for teachers in course homepage,
some behat steps were also modified.
2023-07-19 16:44:54 +02:00
Laurent David
664bc729fe MDL-76710 mod_bigbluebuttonbn: Action URL addons subplugin
* Add action URL extension point
2023-07-19 15:05:09 +02:00
Laurent David
dfeedc5dab MDL-76710 mod_bigbluebuttonbn: Subplugin implementation
* Setup the base for extension type of plugins
    * Add basic unit test for extension plugin (callback and classes)
2023-07-19 15:05:09 +02:00
Dan Marsden
7f76e85397 MDL-46279 mod_scorm: re-factor database tables. 2023-07-18 16:10:47 +12:00
Shamim Rezaie
dedbcaf074 Merge branch 'MDL-78564' of https://github.com/paulholden/moodle 2023-07-17 20:36:53 +10:00
Jake Dallimore
a99e8fbdac
MDL-78575 mod_lti: use activity icon styling for course tool icons 2023-07-17 09:22:18 +08:00
Jake Dallimore
51cc455525
MDL-78575 mod_lti: Add deletion support to course tools page 2023-07-17 09:22:18 +08:00