23136 Commits

Author SHA1 Message Date
Guillermo Gomez
c6cfca2a08 MDL-71696 core_question: Changes for versioning
This commit adds the changes in questiontype base
to work with new question tables and the new structure in the
databse. Also needed for versioning.
This implementation will also introduct the question status
which allows a question to be in draft and ready status.
I also introduces changes to the base view where it shows
the latest version of the questions. The view of versions
for a question is not implemented in this commit.
This implementation will also introduce changes in the core
qtype plugins to support versioning and the changed
db schema.
2022-02-03 22:22:44 +11:00
Mihail Geshoski
f2000f098f MDL-73357 mod_data: Update behat tests
After replacing the tabs navigation with the secondary and tertiary
navigation, the completion data will be no longer displayed on all
pages in the database activity. Therefore, we need to update the
behat tests that still verify the existance of completion data in
pages other than the database view page.
2022-02-01 11:45:12 +08:00
Mihail Geshoski
4cc2b15e51 MDL-73357 mod_data: Update tertiary navigation
The following commit disables the acivity header information in
pages where this information is not required, adds missing headings,
updates the breadcrumbs, repositions the groups selector in the
database view page.
2022-02-01 11:45:12 +08:00
Sara Arjona
291ddd3bce MDL-73337 quiz: Fix PHPUnit errors with missing context_module 2022-01-28 08:38:59 +01:00
Tien Nguyen
e21a8577c6 MDL-73337 Quiz: Editing quizzes should be logged in detail 2022-01-27 22:49:54 +00:00
Ilya Tregubov
57fe1a3099 Merge branch 'MDL-67853-master' of https://github.com/crazyserver/moodle 2022-01-27 16:41:19 +02:00
Pau Ferrer Ocaña
b4c75986ad MDL-67853 message: Adapt tests removing online/offline settings 2022-01-27 15:22:15 +01:00
Pau Ferrer Ocaña
d74bd798b6 MDL-67853 message: Remove on/offline settings on message preferences 2022-01-27 15:22:15 +01:00
Shamim Rezaie
0f803de8aa Merge branch 'MDL-73254' of https://github.com/call-learning/moodle 2022-01-24 19:30:13 +11:00
Laurent David
9877868c6f MDL-73254 mod_bigbluebuttonbn: Fix hide recording functionality
* The hide recording is working in combination with several settings and should
allow the Record button to be hidden either globally on in a given activity
2022-01-24 08:33:45 +01:00
Jake Dallimore
041b1beb46 Merge branch 'MDL-73347-master' of https://github.com/sarjona/moodle 2022-01-24 13:40:57 +08:00
Eloy Lafuente (stronk7)
100bc51f1d MDL-73485 phpunit: externallib, generator and filter tescase names
All externallib_test, generator_test and filter_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under testing/tests:

1) The core_testing component doesn't exist.
2) But testing/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have testing_xxxx as prefix.

Finally, also modified calendar/tests/events/events_test.php because it uses
some renamed (core_calendar_externallib_testcase => \core_calendar\externallib_test)
classes.
2022-01-21 19:48:23 +01:00
Eloy Lafuente (stronk7)
d2ad5e8461 MDL-73523 libraries: openssl_free_xxx() methods are deprecated in php80
So we are putting them under a standard PHP_MAJOR_VERSION < 8 condition.

Also, added TODO comments to remember to delete that block of code when
php80 becomes the minimum required versions in the future (Moodle 4.3?).

When possible, an issue has been created upstream, else a comment in
readme_moodle files has been added.

Finally, when the keys being freed were class or object attributes, also
nullify them (but when the calls were part of destructor methods).
2022-01-20 14:48:22 +01:00
Shamim Rezaie
945058b890 Merge branch 'MDL-73342-master' of https://github.com/sarjona/moodle 2022-01-18 17:00:59 +11:00
Andrew Nicols
68a711ba9b Merge branch 'MDL-73218' of https://github.com/call-learning/moodle 2022-01-18 11:15:25 +08:00
Jun Pataleta
d481ce1bfb Merge branch 'MDL-69966-master' of https://github.com/danielneis/moodle 2022-01-18 10:53:51 +08:00
Andrew Nicols
6670c04c23 Merge branch 'MDL-73476' of https://github.com/stronk7/moodle 2022-01-18 09:31:44 +08:00
Víctor Déniz
cb3e2eeeab Merge branch 'MDL-73206' of https://github.com/call-learning/moodle 2022-01-17 22:36:06 +00:00
Daniel Neis Araujo
1346a3509a MDL-69966 quiz: start attempt button should be a primary button 2022-01-17 13:53:31 -03:00
Laurent David
64d9f988f4 MDL-73206 mod_bigbluebuttonbn: Fix issue with participant roles
* Participant roles could not be updated to moderator and always defaults to viewer
* Remove additional DB query in form to retrieve the current module information
2022-01-17 11:48:31 +01:00
Ilya Tregubov
e21ec28dc3 Merge branch 'MDL-73356-master' of git://github.com/abgreeve/moodle 2022-01-17 12:10:18 +02:00
Ilya Tregubov
f5740bf995 Merge branch 'MDL-73438-master' of git://github.com/mihailges/moodle 2022-01-17 10:42:45 +02:00
Laurent David
3d197d7493 MDL-73218 mod_bigbluebuttonbn: Remove phased out settings
* Remove deprecated settings :
  - bigbluebuttonbn_recordings_validate_url,
  - bigbluebuttonbn_recordings_html_default,
  - bigbluebuttonbn_recordings_html_editable
2022-01-17 09:17:15 +01:00
Andrew Nicols
472568f6b3 Merge branch 'MDL-73360-master' of https://github.com/peterRd/moodle 2022-01-17 13:36:47 +08:00
Peter Dias
f956e1acbb MDL-73362 lesson: Marry up implementation with the prototype
- Update/Add page headings
- Add notifications on override pages
- Rename buttons.
2022-01-17 10:39:18 +08:00
Peter Dias
0e1b09615c MDL-73362 lesson: Bring tertiary nav changes into classic
- Remove usage of lesson's tabs.php
- Add tertiary navigation into classic as the other modules do
2022-01-17 10:39:18 +08:00
Eloy Lafuente (stronk7)
0c53a3dec8 MDL-73476 phpunit: events, external and search tescase names
All events_test, external_test and search_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
  (to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:18:39 +01:00
Sara Arjona
53fe23d8b5 MDL-73347 behat: Add blocks hidden by default for boost
For the boost them, a few themes have been hidden by default.
The unaddable setting should be set to let admins add them again,
because some behat tests need them.
2022-01-14 13:08:48 +01:00
Andrew Nicols
626c8b43bf Merge branch 'MDL-65801' of https://github.com/paulholden/moodle 2022-01-14 09:30:11 +08:00
Paul Holden
6ed8458eda MDL-65801 lang: final removal of deprecated 37/38 strings.
The following lang strings have been undepecated, as they are still
in use:

* errorcoursewronglypublished, core_hub
* eventrolecapabilitiesupdated, core_role
2022-01-13 09:50:50 +00:00
Peter Dias
60150bd068 MDL-73360 glossary: Add heading when creating entries 2022-01-13 09:32:38 +08:00
Víctor Déniz
99df355421 Merge branch 'MDL-73418' of https://github.com/ja9837/moodle 2022-01-12 22:24:33 +00:00
Adrian Greeve
83172ba682 MDL-73356 mod_chat: Move group selector on page and update title.
The group selector is now below the tertiary navigation. The title
for reports now does not contain the activity name. This is present
further up the page.
2022-01-12 14:16:57 +08:00
Mihail Geshoski
78b2a70de5 MDL-73438 choice: Tertiary navigation changes
Removes unnecessary breadcrumb items, updates the headings and
repositions the groups selector in the view and responses page.
2022-01-12 13:13:57 +08:00
Andrew Nicols
bbf9b5561b Merge branch 'MDL-73511' of https://github.com/call-learning/moodle 2022-01-12 11:38:45 +08:00
Andrew Nicols
c86258d19f Merge branch 'MDL-73526' of https://github.com/stronk7/moodle 2022-01-12 10:19:05 +08:00
Eloy Lafuente (stronk7)
91e03eb3c8 MDL-73526 mod_wiki: Remove unused nwiki diff processor
It never has been used in core since it was introduced in 2011
by MDL-22112, because the ouwiki_diff_html() is used unconditionally
for all wiki formats (html, creole or nwiki).

So, removing it to avoid any current (php80) or future incidence
with it.
2022-01-11 17:27:44 +01:00
Sara Arjona
219d8ec4a4 MDL-73342 feedback: Disable the block by default
Co-authored by: Amaia Anabitarte <amaia@moodle.com>
2022-01-11 16:37:25 +01:00
Paul Holden
c7a62a8c82 MDL-72573 mod_h5pactivity: tighter validation of external sort param.
Restrict external method $sortorder parameter to limited subset of
values.
2022-01-11 14:34:16 +01:00
Andrew Nicols
adbf7a9761 Merge branch 'MDL-73439-master' of https://github.com/peterRd/moodle 2022-01-11 10:09:41 +08:00
Víctor Déniz
5a7c9ae8d5 Merge branch 'MDL-73430-master' of https://github.com/peterRd/moodle 2022-01-10 22:25:45 +00:00
Ilya Tregubov
0a89491cbc Merge branch 'MDL-73437-master' of https://github.com/peterRd/moodle 2022-01-10 12:46:47 +02:00
Peter Dias
1a83bd79e0 MDL-73437 workshop: Use templates for actionbar
* Convert the actionbar to use renderables/templates
* Introduce spacing below tertiary navigation
* Add headings on allocations after tertiary navigation
2022-01-10 16:06:47 +08:00
Peter Dias
8976da3ed5 MDL-73430 label: Change text of label's secondary nodes 2022-01-10 08:22:08 +08:00
Ilya Tregubov
c2a1d3ebca Merge branch 'MDL-73427-master' of https://github.com/cameron1729/moodle 2022-01-07 09:41:15 +02:00
Jun Pataleta
d90d2bc00c Merge branch 'MDL-73411-master' of git://github.com/mihailges/moodle 2022-01-07 11:30:48 +08:00
Laurent David
c7b706186c MDL-73511 mod_bigbluebuttonbn: exception raised when editing activity
* When editing an activity and the voicebridge_editable is set, there is an exception raised
2022-01-06 20:13:41 +01:00
Ilya Tregubov
9e95cb81b4 MDL-73306 mod_bigbluebuttonbn: Fix unit tests. 2022-01-06 12:20:16 +02:00
Mihail Geshoski
9073f85530 MDL-73411 survey: Update tertiary navigation 2022-01-06 09:56:13 +08:00
Cameron Ball
776bfb134c MDL-73427 core: Remove $SESSION->fromurl 2022-01-05 19:39:21 +08:00