102933 Commits

Author SHA1 Message Date
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
Sara Arjona
89ab2b1c22 Merge branch 'master_MDL-72076-bulkactionsui-121' of https://github.com/catalyst/moodle-MDL-70329 2021-11-23 10:52:10 +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
Eloy Lafuente (stronk7)
7013bda35b on-demand release 4.0dev+ 2021-11-19 19:16:53 +01:00
Eloy Lafuente (stronk7)
dc5a834441 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-11-19 19:16:48 +01:00
Sara Arjona
fe80a2b716 Merge branch 'MDL-72799' of https://github.com/stronk7/moodle 2021-11-19 15:51:03 +01:00
Eloy Lafuente (stronk7)
b62095fa97 MDL-72799 behat: Increase allowed size for privacy exports
Because of more moodle.css contents, the total size of the privacy
exports has grown over the allowed size. Just raise it a little bit
more.

Note this commit isn't a problem caused exclusively by this issue,
but as far as this also contributed to the size increase, assigning
the fix to it.
2021-11-19 12:07:07 +01:00
Eloy Lafuente (stronk7)
57a2188cda Merge branch 'MDL-69092-patched' of https://github.com/ilyatregubov/moodle 2021-11-19 09:13:27 +01:00
Ilya Tregubov
47c9289420 MDL-69092 mod_lti: Fix typo. 2021-11-19 09:50:36 +02:00
Andrew Madden
36f3aee38e MDL-69092 mod_lti: Add js_pending to help behat tests 2021-11-19 09:50:35 +02:00
Ilya Tregubov
e14bb0b9c4 Merge branch 'MDL-69092' of https://github.com/stronk7/moodle 2021-11-19 08:53:44 +02: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
AMOS bot
243eb2575a Automatically generated installer lang files 2021-11-19 00:07:28 +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
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
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
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