103078 Commits

Author SHA1 Message Date
Jun Pataleta
357ddcaff6 Merge branch 'MDL-72826' of git://github.com/paulholden/moodle 2021-11-19 11:07:03 +08:00
AMOS bot
243eb2575a Automatically generated installer lang files 2021-11-19 00:07:28 +00:00
Paul Holden
9a56e2ba1f MDL-72988 mod_lti: improved handling of missing tool endpoint. 2021-11-18 22:55:01 +00:00
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)
628de2bf08 MDL-69092 mod_lti: SQL fix for cross-db 2021-11-18 20:46:56 +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
Bas Brands
79975c9a7f MDL-73092 theme_boost: increase right drawer width 2021-11-18 09:14:20 +01: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
Tomo Tsuyuki
cb4e37c462 MDL-73095 core_ddl: Fix binary type field check 2021-11-18 17:53:00 +11:00
Michael Milette
66bcaa69a5 MDL-72887 search: Tooltip added to navbar search icon. 2021-11-18 00:59:50 -05:00
Peter Dias
12ded633b4 MDL-72934 core_navigation: Early return if no nodes to be rendered.
Do not export any items for templates if the nodecollection does not
have any children.
2021-11-18 11:17:00 +08: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
Simey Lameze
46e4130b6f MDL-73067 block_calendar_month: remove event key filter 2021-11-18 09:08:03 +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
AMOS bot
a5d38be14b Automatically generated installer lang files 2021-11-18 00:07:26 +00:00
Eloy Lafuente (stronk7)
4c0ae3e138 MDL-73098 install: Detect stale bootstrap.php files and disable them
It's important to say that this bug apparently (till now) only happens
when an *incorrect* instalation of a site happens, reusing the dataroot
from another existing site.

When that happens, the localcache/bootstrap.php file from the old
site is reused, setting siteidentifier and SYSCONTEXTID when it's not
time for them to be defined yet.

Their existenece leads to reusing some other structures from the old
dataroot (that, again, should have been changed or wiped!), ultimately
leading to all sort of errors about non-existent tables (course,
context...).

With this change we ensure that:

1) Whenever any change to the database configuration (prefix, user,
   type..) happens, it's detected and immediately the information
   in the localcache/bootstrap.php is discarded and the file removed.
   This should fix problems like MDL-73098 itself.

2) We only set SYSCONTEXTID if the file is not stale. Main reason
   for doing that check within the localcache/bootstrap.php file
   itself is that we cannot "undefine" it @ setup.php. This should
   prevent errros like MDL-72888 to happen.

3) Finally, little detail, we only define SYSCONTEXTID if it has
   not been defined earlier. In the past, it was recommended to
   define it in config.php (exactly to save one DB read) and, sites
   having them will face "already defined" warnings.
2021-11-17 20:56:36 +01: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
AMOS bot
347878b3e5 Automatically generated installer lang files 2021-11-17 00:07:32 +00: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
Paul Holden
be11216d30 MDL-72826 reportbuilder: per-report option to show only unique rows.
This option allows report creators to avoid duplicate data being
displayed in their report. It is applied only when no columns in the
report currently have aggregation methods applied.
2021-11-16 13:59:16 +00: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
Faisal Kaleem
26ca780f57 MDL-72967 lib: fix typo in excellib insert_bitmap() method 2021-11-16 10:31:42 +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