29137 Commits

Author SHA1 Message Date
Ilya Tregubov
f6feaad138 Merge branch 'MDL-72456-master' of https://github.com/ferranrecio/moodle 2021-11-25 20:25:19 +02:00
Jun Pataleta
b5c4886efe Merge branch 'MDL-72443' of https://github.com/paulholden/moodle 2021-11-25 17:32:10 +08:00
laurentdavid
65212c538b MDL-70658 mod_bigbluebutton: Include version 2021091407 into core
This commit includes a copy of the bigbluebuttonbn activity module from:
- branch: tags/v2.5-alpha.2^0
- commit:
2021-11-24 12:27:27 +00:00
Ferran Recio
73cfbea3ee MDL-72456 theme_boost: style drawers 2021-11-23 12:51:11 +01:00
Shamim Rezaie
46e6502283 Merge branch 'MDL-72776-master' of https://github.com/ferranrecio/moodle 2021-11-23 14:56:50 +11:00
Sara Arjona
4c1ccf5ed3 Merge branch 'MDL-72934-master' of https://github.com/peterRd/moodle 2021-11-23 10:52:11 +08:00
Sara Arjona
9773051128 Merge branch 'MDL-72927-master' of https://github.com/junpataleta/moodle 2021-11-23 10:52:11 +08:00
Ilya Tregubov
5cdaaa4a8d Merge branch 'MDL-72967-master' of https://github.com/lameze/moodle 2021-11-23 10:52:11 +08:00
Eloy Lafuente (stronk7)
0dd508d671 Merge branch 'MDL-73095_master_v3' of https://github.com/TomoTsuyuki/moodle
Added one extra TEXT column so we have it covered too.
2021-11-23 10:52:10 +08:00
Ferran Recio
675f8e24ca MDL-72776 theme_boost: new editing progress effect 2021-11-22 08:57:10 +01:00
Jun Pataleta
a44d41bb51 MDL-72927 core: Make Remember username checkbox look like a checkbox 2021-11-22 14:50:25 +08:00
Safat Shahin
0805e387b7 MDL-72076 bulk actions ui: Implement bulk actions in qbank API
This implementation will introduce bulk actions qbank
plugins which can grab the selected question and perform
actions according to the selected option from dropdown
in the base view.

Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
Co-Authored-By: Matt Porritt <mattp@catalyst-au.net>
2021-11-22 11:35:21 +11:00
Shamim Rezaie
a46aa000b0 Merge branch 'MDL-73098' of https://github.com/stronk7/moodle 2021-11-19 15:19:15 +11:00
Jun Pataleta
357ddcaff6 Merge branch 'MDL-72826' of git://github.com/paulholden/moodle 2021-11-19 11:07:03 +08: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
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
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
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
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
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
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
Amaia Anabitarte
9b5367b306 MDL-72907 core_repository: Fix enable_plugin function 2021-11-16 09:20:56 +01:00
Bas Brands
4fb5fb052f MDL-72250 theme_boost: add mobile nav drawer 2021-11-16 08:58:01 +01: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
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
Shamim Rezaie
4f96d7ac92 MDL-70721 core: a new mustache helper to clean string after get_string 2021-11-15 22:14:03 +11: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
6ca9c2154a MDL-70801 core_my: Add a new courses page 2021-11-15 11:49:35 +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
Paul Holden
143c80e229 MDL-72443 files: support svg preview as with other image types. 2021-11-12 15:07:02 +00:00
David Matamoros
697594cd95 MDL-73011 core: Clean previous tab content when switching tabs
Co-authored-by: Paul Holden <paulh@moodle.com>
2021-11-11 23:32:58 +00:00
Víctor Déniz
e82b2ed8d1 Merge branch 'MDL-72565-integration' of https://github.com/roland04/moodle 2021-11-11 23:14:36 +00:00
Jun Pataleta
e1c9c7b007 Merge branch 'MDL-73007' of https://github.com/paulholden/moodle 2021-11-11 23:45:12 +08:00
Mikel Martín
eab63e82a1 MDL-72565 tablelib: Add modifications needed for report card view
- new 'set_columns_attributes' method created to add column attributes included in every column cell.
- new 'get_row_cells_html' method created from 'get_row_html', so it can be overriden individually.
2021-11-11 13:55:31 +01:00
Mikel Martín
aaa7a5a445 MDL-72565 reportbuilder: Add 'Card view' settings to custom reports
- Create a new 'settings' column in reportbuilder_report table and provide an API to manage it
- Add new card view settings to custom reports
2021-11-11 13:55:29 +01:00