102913 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
2db434ea98 Merge branch 'MDL-71882-master' of https://github.com/andrewnicols/moodle 2021-11-18 23:31:03 +01:00
Eloy Lafuente (stronk7)
1bdb9cafd6 Merge branch 'MDL-72470-master' of https://github.com/sharidas/moodle 2021-11-18 18:37:09 +01:00
Sara Arjona
dc0e7a45df Merge branch 'MDL-70721-master' of git://github.com/rezaies/moodle 2021-11-18 15:18:51 +01:00
Shamim Rezaie
4f76d40628 Merge branch 'MDL-72887-master' of https://github.com/michael-milette/moodle 2021-11-18 22:37:08 +11:00
Ilya Tregubov
39cae56ef5 Merge branch 'MDL-69092-master_lti_pagination' of https://github.com/andrewmadden/moodle 2021-11-18 08:57:12 +02:00
Michael Milette
66bcaa69a5 MDL-72887 search: Tooltip added to navbar search icon. 2021-11-18 00:59:50 -05:00
Andrew Nicols
83c69cdfee Merge branch 'MDL-73090' of https://github.com/paulholden/moodle 2021-11-18 10:12:31 +08:00
Andrew Nicols
f64e4ec2bf Merge branch 'MDL-70801-new' of https://github.com/Chocolate-lightning/moodle 2021-11-18 09:51:02 +08:00
Mathew May
646a08958f MDL-70801 block_myoverview: Correct the user for course searching in behat 2021-11-18 08:18:09 +08:00
Paul Holden
80dd297a62 MDL-73090 reportbuilder: confirmation before resetting conditions.
Also prefetch all lang strings used by conditions editor.
2021-11-17 16:27:50 +00:00
Bas Brands
aff86afaff MDL-72250 core_course: behat fix for targeting close button 2021-11-17 14:39:11 +02:00
Andrew Madden
1c78187010 MDL-69092 pagination: Add first/last config for paging_content_factory
Allow config toggle for showing first and last button for paging_content_factory.
2021-11-17 22:45:07 +11:00
Andrew Madden
f435f313e0 MDL-69092 mod_lti: Add pagination to toolconfigure.php.
* Add local function to access subsets of proxies and types direct from DB.
* Add local function to access count of proxies and types direct from DB.
* Add new external function to get both proxies and types with pagination.
* Add new external function to get count of proxies and types.
* Implement pagination using page factory in JS.
* Added unit tests to cover new external functions.
* Add mod_lti behat generators and tests.
* Show first and last button in paging bar.
* Created helper class to assist with new functions.
2021-11-17 22:44:56 +11:00
Ilya Tregubov
557b56e1ec Merge branch 'MDL-72816-master-nov17' of https://github.com/peterRd/moodle 2021-11-17 10:27:15 +02:00
Jun Pataleta
f6a15259f7 Merge branch 'MDL-72925_master_v2' of https://github.com/TomoTsuyuki/moodle 2021-11-17 16:05:46 +08:00
Peter Dias
a7a5f6626a MDL-72816 navigation: Make sure a secondary node is active
- Clone nodes shared between nav trees before utilising it.
2021-11-17 15:55:24 +08:00
Peter Dias
423e5a5fee MDL-72816 navigation: Make sure a primary node is active
- Revert unnecessary primary_active_tab setters
- Modify the navigation nodes to never change text based on default homepage
- Make sure a tab is set active
2021-11-17 15:55:18 +08:00
Sara Arjona
b238091f7c Merge branch 'MDL-71699' of https://github.com/mkassaei/moodle 2021-11-17 08:53:34 +01:00
Shamim Rezaie
cb6f1d3d89 Merge branch 'MDL-72799' of https://github.com/Chocolate-lightning/moodle 2021-11-17 18:18:17 +11:00
Mathew May
24bfcd9fd7 MDL-72799 navigation: Improvements to navigation styling 2021-11-17 15:14:09 +08:00
Ilya Tregubov
cffd19b699 Merge branch 'MDL-69496_Master' of https://github.com/1JackBlack1/moodle 2021-11-17 09:01:00 +02:00
Andrew Nicols
738d4cac07 Merge branch 'MDL-70801-new' of https://github.com/Chocolate-lightning/moodle 2021-11-17 12:41:32 +08:00
Andrew Nicols
c1e639c41a MDL-71882 grunt: Replace module names
When a third-party AMD module is provided with an included name we must
replace it with a name that we are able to use.

The structure of an AMD module define function is:

    [name], [dependencies], [callback]
    String, Array,          Function

Each of these is (strangely) optional.

We know that the name is the only String and will always be the first,
and we can use AST to remove a provided name before adding the
Moodle-specific name.

This should be a safe change and not lead to any changes in built code,
but will make it easier to include third-party code.

An additional logging line is also included to inform developers that a
change was made.
2021-11-17 09:16:55 +08:00
PraiseSatan
982d1bb1c8 MDL-69496 quiz: Only validate completion if unlocked
Quiz completion settings are only validated if they are unlocked.
Undefined behaviour in the forms API results in the completion
settings 'require passing grade' and 'completion attempts exhausted'
not being sent to the process options function if completion
settings are locked. This resulted in the completion attempts
exhausted setting being disabled whenever the quiz was saved
as it did not detect the require passing grade setting.
This changes the behaviour so that validation is only performed
if the completion settings are unlocked.
A behat test is included to ensure the setting does not change.
2021-11-17 09:11:29 +11:00
Shamim Rezaie
dfe03b3036 Merge branch 'MDL-72250-master-3' of https://github.com/bmbrands/moodle 2021-11-17 07:30:54 +11:00
Shamim Rezaie
8f65f24221 Merge branch 'MDL-72907-master' of https://github.com/sarjona/moodle 2021-11-17 02:02:51 +11:00
Eloy Lafuente (stronk7)
eab63d2cfe on-demand release 4.0dev+ 2021-11-16 14:00:24 +01:00
Eloy Lafuente (stronk7)
70e91430b5 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-11-16 14:00:20 +01:00
Amaia Anabitarte
9b5367b306 MDL-72907 core_repository: Fix enable_plugin function 2021-11-16 09:20:56 +01:00
Bas Brands
8d976f932f MDL-72250 tool_usertours: behat update for new drawer toggle button 2021-11-16 08:58:01 +01:00
Bas Brands
4fb5fb052f MDL-72250 theme_boost: add mobile nav drawer 2021-11-16 08:58:01 +01:00
Tomo Tsuyuki
815f51979c MDL-72925 mod_forum: Filter discussion when grading 2021-11-16 15:23:51 +11:00
Jun Pataleta
c988241f42 Merge branch 'MDL-72966-master' of https://github.com/NashTechOpenUniversity/moodle 2021-11-16 11:38:35 +08:00
AMOS bot
3c88cc7fd7 Automatically generated installer lang files 2021-11-16 00:07:27 +00:00
Shamim Rezaie
7ba7920aa8 MDL-70721 output: Remove redundant title
The format_string() function does half html escaping. It escapes < and >
characters, but does not escape ". Therefore, it put us in a situation
where neither {{}}, nor {{{}}} are suitable in templates. If we use {{}}
for an attribute (like title or aria-label), then < and > characters
will be double escaped. On the other hand, if we use {{{}}} there, a
double quote character will break HTML when it is used in an attribute.
Therefore, neither {{}}, nore {{{}}} are usable in html attributes.

Moreover, The title attribute here was redundant because it had the same
value as the link's text.
2021-11-16 10:08:07 +11:00
Shamim Rezaie
652392d932 MDL-70721 output: remove {{#quote}} wherever it was misused
Also use the new {{#cleanstr}} helper where it was more appropriate
than the {{#str} helper.
2021-11-16 10:08:06 +11:00
Eloy Lafuente (stronk7)
d0fc23cd06 Merge branch 'MDL-72096-master' of https://github.com/mickhawkins/moodle 2021-11-15 19:02:13 +01:00
Eloy Lafuente (stronk7)
f897b267ad Merge branch 'MDL-72908' of https://github.com/paulholden/moodle 2021-11-15 18:57:54 +01:00
Mahmoud Kassaei
ad1747e28c MDL-71699 grade_report: Add custom user field support 2021-11-15 15:08:23 +00:00
Paul Holden
836f2f044a MDL-72908 admin: correctly distinguish purging all/selected caches. 2021-11-15 12:20:11 +00:00
Ilya Tregubov
01f8949950 Merge branch 'MDL-73011' of https://github.com/paulholden/moodle 2021-11-15 13:37:16 +02:00
Shamim Rezaie
4f96d7ac92 MDL-70721 core: a new mustache helper to clean string after get_string 2021-11-15 22:14:03 +11:00
Ilya Tregubov
5efc19da4c Merge branch 'MDL-72612' of https://github.com/mkassaei/moodle 2021-11-15 10:15:46 +02:00
Michael Hawkins
6d26ba77f3 MDL-72096 core: Add safe ORDER BY helpers for db sorting from user input
The new get_safe_orderby() and get_safe_orderby_multiple() methods
provide a centralised safe way for user submitted sorting values to be
incorporated into SQL ORDER BY. They do this by removing the need for
user submitted data to pass in any SQL and not allowing arbitrary
column values, instead using string keys which map to a predefined
list of allowed sortable columns.
2021-11-15 12:42:43 +08:00
Mathew May
e110e5b330 MDL-70801 block_myoverview: Upgrade steps to relocate the block 2021-11-15 11:49:35 +08:00
Mathew May
6ca9c2154a MDL-70801 core_my: Add a new courses page 2021-11-15 11:49:35 +08:00
Andrew Nicols
7be967d3d6 Merge branch 'MDL-73038' of https://github.com/paulholden/moodle 2021-11-15 08:54:24 +08:00
Thong Bui
ec160a91cb MDL-72966 File upload: Uncaught Error from JS when uploading the file 2021-11-15 07:28:50 +07:00
Andrew Nicols
e11332cf90 MDL-69092 behat: Repeated generator 2021-11-15 11:06:58 +11:00
PraiseSatan
ef9ffcd16d MDL-69496 form: Check if element has attributes
Checks if a form element has attributes before
trying to get the default value. This fixes
an error when trying to get the default value
for a frozen group which does not have the
attributes array.
2021-11-15 09:38:20 +11:00