28674 Commits

Author SHA1 Message Date
Adrian Greeve
1a8b11b721 MDL-71877 navigation: Set the correct url for the activity view.
- Part of: MDL-69588
The first tab in the secondary navigation is to show the tab to
navigate to the modules view.php file. This patch sets the url
to view.php and if it matches the pages url, also sets it as
active.
2021-08-23 17:46:39 +08:00
Mihail Geshoski
2748d4e7ee MDL-71680 navigation: Set forceintomoremenu to child nodes recursively
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
1c017ad8fb MDL-71680 navigation: Update templates/js to force nodes into more menu
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
e3f35a2f22 MDL-71680 navigation: Add unit tests for force_nodes_into_more_menu()
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
73154233e0 MDL-71680 navigation: Add unit tests for set_force_into_more_menu()
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
9b792e814b MDL-71680 navigation: Force secondary navigation nodes into "more" menu
- Part of: MDL-69588
Enables to pre-define nodes which should be added into the "more" menu
by default and also setting a maximum limit of displayed nodes in the
secondary navigation.
2021-08-23 17:46:39 +08:00
Bas Brands
17e9d4a51a MDL-70202 theme_boost: push secondary navigation in admin search page
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
00239bccad MDL-70202 theme_boost: remove accessibility changes for moremenu tabs
- Part of: MDL-69588
- the more menu will be responsive and does not need changed tab styles on small devices
2021-08-23 17:46:39 +08:00
Bas Brands
527562d12f MDL-70202 theme_boost: frontend for secondary navigation
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
da67b468fa MDL-70208 theme_boost: frontend for primary navigation
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
19fd786270 MDL-71680 navigation: Enable forcing navigation_node into "more" menu
- Part of: MDL-69588
Adds new property 'forceintomoremenu' and new setter method in the
navigation_node class to enable forcing a navigation note into a
"more" menu whenever possible.
2021-08-23 17:46:38 +08:00
Adrian Greeve
f28535082c MDL-70196 behat: Add a new step for navigating with the navbar.
- Part of: MDL-69588
A lot of tests work on the basis that you can follow the last item
of the breadcrumb nav bar. This is not the case. This step will first
check to see if the page is already the one requested. If it is then
nothing further needs to happen, otherwise we follow the link in the
navbar.
2021-08-23 17:46:38 +08:00
Peter Dias
5446cadef8 MDL-71148 core_navigation: Unit test for the primary output
- Part of: MDL-69588
2021-08-23 17:46:38 +08:00
Peter Dias
0c76a848ea MDL-71148 core_navigation: Templates to generate user menu
- Part of: MDL-69588
2021-08-23 17:46:36 +08:00
Peter Dias
8782702d34 MDL-71148 core_navigation: Provide user menu as nodes
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Peter Dias
6462e651e4 MDL-71148 core_navigation: New renderer to combine nav components
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Peter Dias
25e178aa59 MDL-71148 core_navigation: Move unauthenticated user checks to the lib
- Part of: MDL-69588
Added conditional information in user_get_user_navigation_info for
when a user is unauthenticated.
2021-08-23 17:45:55 +08:00
Peter Dias
fe285d5496 MDL-71148 core_navigation: Provide a menu header in a system context.
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Ilya Tregubov
eba1d32c00 MDL-49202 core: Comment broken test.
Should be fixed properly as part of MDL-72377.
2021-08-19 17:04:43 +02:00
Ilya Tregubov
b8e4235160 Merge branch 'MDL-49202_master' of git://github.com/mdjnelson/moodle 2021-08-19 16:53:30 +02:00
Mark Nelson
9a0d63383a MDL-49202 core: fix failing unit tests
See MDL-72377.
2021-08-19 20:16:29 +08:00
Andrew Nicols
70a2975041 Merge branch 'MDL-71709' of git://github.com/paulholden/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
517fe298c3 Merge branch 'MDL-68639-master' of https://github.com/xcaro/moodle 2021-08-19 09:10:18 +02:00
Safat Shahin
38ec802858 MDL-71615 qbank_deletequestion: Add Delete question plugin to core
This implementation will introduce a qbank plugin
"deletequestion" which will implement the delete question
action in the question bank view by replacing the core
class. Having this plugin will give users the
flexibility of enabling or disabling this action.
2021-08-19 09:10:17 +02:00
Andrew Nicols
aebcf8d909 Merge branch 'MDL-69451-shared-temptables' of https://github.com/srdjan-catalyst/moodle 2021-08-19 09:10:17 +02:00
Ilya Tregubov
c0fc0747a8 Merge branch 'master_MDL-71516-qbank' of https://github.com/catalyst/moodle-MDL-70329 2021-08-19 09:10:16 +02:00
Ilya Tregubov
43ea2271eb Merge branch 'MDL-71814-master' of git://github.com/NashTechOpenUniversity/moodle 2021-08-19 09:10:16 +02:00
safatshahin
dfed4fd040 MDL-71516 core_question: Qbank api implementation
This commit implements the qbank api so that any plugin
can implement its own question bank. This api currently
works parallely with the moodle core classes and the
added qbank in the core, means the moment a plugin
is installed, that object is replaced with the object
from the plugin instead of core, which means the api
has flexibility till the plugins are integrated and the
plugins can be integrated in any order.

All the old classes are still there and not deprecated
as there is a different tracker for the changes to the
quiz and another tracker for class deprecation and
class renaming. Core question units tests are pointing
to the new api structure but the classes are pointing
to the location related to the plugin availability.

Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
Co-Authored-By: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>

one more array fix
2021-08-17 18:57:31 +10:00
Nhan Vo
7bcd58783f
MDL-68639 HTML Editor (Atto): Invalid HTML for nested lists 2021-08-17 02:51:14 +07:00
Thach Le Huy
b3be2bbb67 MDL-71814 Atto: File picker – file info panel focus issue 2021-08-16 16:52:08 +07:00
safatshahin
351176bb71 MDL-71516 core_question: Create new plugin type - qbank
This commit implements the qbank plugin type which
includes the boilerplate for the qbank plugin, the
qbank plugin management admin page and required core
code addition.
2021-08-16 09:59:11 +10:00
Ilya Tregubov
6973d2c88a Merge branch 'MDL-72035-excel_csv_bom' of git://github.com/leonstr/moodle 2021-08-13 11:09:27 +02:00
Andrew Nicols
3ea604baf4 Merge branch 'MDL-72138' of https://github.com/paulholden/moodle 2021-08-13 10:28:26 +08:00
Andrew Nicols
f06ef721f7 Merge branch 'MDL-72325-master-tourspolicy' of git://github.com/mudrd8mz/moodle 2021-08-13 09:58:12 +08:00
David Mudrák
7a8eae027f MDL-72325 user: Introduce new core_user::awaiting_action() method
The method allows to check if the user is fully ready to use the site or
whether there is an action (such as filling the missing profile field,
changing password or agreeing to the site policy) needed.
2021-08-12 13:05:38 +02:00
Paul Holden
58c6afb94d MDL-72138 task: allow running core tasks from schedules UI.
Fixes regression from 9c4510a3 that didn't consider tasks belonging
to core, rather than just those belonging to plugins.
2021-08-12 09:49:10 +01:00
Eloy Lafuente (stronk7)
ee468d201d Merge branch 'MDL-72265' of https://github.com/timhunt/moodle 2021-08-11 23:59:01 +02:00
Víctor Déniz
5f0690f5db Merge branch '71992-master-fix-behat-tests-on-https' of https://github.com/DSI-Universite-Rennes2/moodle 2021-08-11 14:32:20 +01:00
Eloy Lafuente (stronk7)
5307bd2930 Merge branch 'MDL-72242-master-svgforcedfilter' of git://github.com/mudrd8mz/moodle 2021-08-11 11:39:52 +02:00
Víctor Déniz
21909b59fb Merge branch 'MDL-69918-master' of git://github.com/andrewnicols/moodle 2021-08-10 19:15:22 +01:00
Eloy Lafuente (stronk7)
b3c47da570 Merge branch 'MDL-72254' of https://github.com/timhunt/moodle 2021-08-10 19:28:13 +02:00
Andrew Nicols
530322e2ce MDL-69918 core: Update uses of legacy form change checker 2021-08-10 23:54:01 +08:00
Andrew Nicols
cbe19158e9 MDL-69918 core: Rewrite Form Change Checker a ES6 2021-08-10 23:54:01 +08:00
Paul Holden
969cbd2c7d MDL-71709 libraries: upgrade to version 1.10.1 of MaxMind. 2021-08-10 09:37:31 +01:00
Huong Nguyen
80bf558bea MDL-71656 atto: Add meaningful labels to colour items
Colour chooser supported:
 - atto_fontcolor
 - atto_backcolor
2021-08-09 16:00:21 +07:00
Srdjan
fa0eecd6bf MDL-69451 dml: use same temptables for both rw and ro database handle
moodle_read_slave_trait: when creating another handle, restore temptables
property that is clobbered by raw_connect().

Also a better condition for temptable related queries detection in
pgsql_native_moodle_database.

dml_pgsql_read_slave_test::test_temp_table(): use real db connection
if possible, otherwise skip the test.
2021-08-06 10:00:20 +10:00
Tim Hunt
e7880337ad MDL-72265 backup: fix checking of override capabilites on restore
Thanks to Peter Dias <peter@moodle.com> for his help with the unit test.
2021-08-05 13:54:59 +01:00
Víctor Déniz
9e6634556a Merge branch 'MDL-72262-master' of git://github.com/ilyatregubov/moodle 2021-08-04 12:08:22 +01:00
abgreeve
26125cf670 Merge branch 'MDL-71070' of git://github.com/paulholden/moodle 2021-08-04 10:14:18 +08:00
Paul Holden
a4a3721081 MDL-71070 reportbuilder: consistent user fullname columns sorting.
Report columns that display the fullname of users should behave
in a consistent manner with current functionality of tables, in
regards to sorting by each individual component of a name (first
name, middle name, surname, etc).

To facilitate this, instead of a hard-coded assumption that such
columns are always named 'fullname', table classes can now define
additional columns containing a users name.
2021-08-03 12:05:59 +01:00