23192 Commits

Author SHA1 Message Date
Jun Pataleta
6b65550240 Merge branch 'MDL-73373-master' of https://github.com/peterRd/moodle 2022-02-16 21:14:26 +08:00
Ilya Tregubov
bc6416908d Merge branch 'MDL-73370-master' of https://github.com/peterRd/moodle 2022-02-16 12:52:49 +02:00
Peter Dias
240da1b186 MDL-73370 contentbank: Update behat tests 2022-02-16 17:49:00 +08:00
Sara Arjona
c992130786 Merge branch 'MDL-73840-master' of https://github.com/mihailges/moodle 2022-02-15 17:21:42 +01:00
Sara Arjona
ee20a7ae7b Merge branch 'MDL-73834' of https://github.com/stronk7/moodle 2022-02-15 17:18:38 +01:00
Víctor Déniz
a0aeaca013 Merge branch 'MDL-73368' of https://github.com/call-learning/moodle 2022-02-15 15:38:45 +00:00
Ilya Tregubov
256804d2ed Merge branch 'MDL-73532-master-1' of https://github.com/mihailges/moodle 2022-02-15 13:37:24 +02:00
Ilya Tregubov
f4b1fd8477 Merge branch 'MDL-73312' of https://github.com/call-learning/moodle 2022-02-15 13:34:25 +02:00
Laurent David
749b416473 MDL-73312 mod_bigbluebuttonbn: Fix sort by date for recordings
* Fix sorting for dates in recording table
* Code review and getString usage in JS
2022-02-15 08:07:51 +01:00
Mihail Geshoski
2a920abd5b MDL-73840 mod_feedback: Remove the duplicate navigation selector
The patch removes the duplicate navigation selector which appears in the
'Show non-respondents' page by removing the 'nonrespondents' node from
the module's settings navigation. Additionally, it highlights the
'Responses' item in the secondary navigation and sets it as active in
the module settings navigation.
2022-02-14 17:48:30 +08:00
Eloy Lafuente (stronk7)
a419c7ec12 MDL-73834 mod_lti: Don't load external artifacts, original behaviour
Summary:

- With PHP7, libxml_disable_entity_loader() was making those
  flags futile, and the DTDs were not being requested ever.
- With PHP8, the flags get precedence and requests for the
  DTD have started to happen.
- Those requests are not served by W3C (1 minute time-out).
- Those DTDs aren't used by anything in code (no entity
  replacement, no validation...)

Hence:
- Remove the flags so it will work the same in PHP7 and PHP8.
- Just to double ensure we don't want any remote loading
  to happen ever, add explicitly the LIBXML_NONET flag.
2022-02-14 10:26:45 +01:00
Mihail Geshoski
42a0a9a71c MDL-73532 mod_label: Update the load_module_navigation() method 2022-02-14 09:40:27 +08:00
Mihail Geshoski
a6c2a87fdf MDL-73532 mod_feedback: Update the load_module_navigation() method 2022-02-14 09:40:27 +08:00
Mihail Geshoski
4a9c83ac9e MDL-73532 navigation: Modify methods that extend the setting nav
Introduces some changes to the exising _extend_settings_navigation()
methods that utilize the global $PAGE object. In order to accomodate
the changes done for the secondary navigation for single activity
courses, the methods that extend the settings navigation can no longer
rely on the $PAGE object, instead the more reliabe way to obtain this
infomation is through the get_page() method from settings_navigation
class.
2022-02-14 09:40:27 +08:00
Eloy Lafuente (stronk7)
d66a5316ae MDL-73826 phpunit: Allow curl mock responses to handle empty strings
Before this commit, is_empty() was being applied before returning
the mock response. But we want to be able to mock the empty response
for some tests, hence moving the condition to null/isset, that is
the value that array_pop() returns where there aren't more elements
in the array.

With that change performed, we can test lti_load_cartridge() with
empty responses, hence adding a new test for that.
2022-02-11 23:50:05 +01:00
Eloy Lafuente (stronk7)
64969e82d7 MDL-73826 mod_lti: Fix for Windows/PHP8 with empty curl responses
Sometimes (detected with Windows, when running @ GHA), both the
response and the error of a curl request to non-existing URL
returns the empty string.

In that case, we cannot call to DOMDocument::loadXML() because the
1st param cannot be empty. So here, whenever that happens, we are
throwing the moodle_exception earlier, instead of waiting for the
XML errors to be processed later.
2022-02-11 23:50:05 +01:00
Adrian Greeve
3a48a60cfc MDL-73354 mod_assign: Added removed group check to overrides. 2022-02-11 22:28:11 +11:00
Ilya Tregubov
8685968870 Merge branch 'MDL-73764' of https://github.com/stronk7/moodle 2022-02-10 14:18:34 +02:00
Jake Dallimore
2a736da1ee Merge branch 'MDL-73448-master' of https://github.com/peterRd/moodle 2022-02-10 15:59:57 +08:00
Peter Dias
97fb06057b MDL-73448 scorm: Remove displayactivityname in scorm. 2022-02-10 15:23:36 +08:00
Peter Dias
8f16a4d98e MDL-73448 scorm: Update scorm tertiary navigation
* Left align scorm content
* Add headings
* Remove exit buttons when in separate window
2022-02-10 15:23:36 +08:00
Jake Dallimore
264e2b4781 Merge branch 'MDL-73354-master' of git://github.com/abgreeve/moodle 2022-02-10 14:14:41 +08:00
Jun Pataleta
7d743b255d Merge branch 'MDL-73633-master' of git://github.com/mihailges/moodle 2022-02-09 17:45:54 +08:00
Peter Dias
df5425538e MDL-73373 behat: Update behat tests 2022-02-09 16:06:48 +08:00
Adrian Greeve
965f4e74cd fixup! MDL-73354 mod_assign: General tidy up of tertiary navigation. 2022-02-09 10:52:58 +08:00
Adrian Greeve
ddb35c124a fixup! MDL-73354 mod_assign: Overrides page updates to tertiary navigation. 2022-02-09 10:52:35 +08:00
Adrian Greeve
ac32195022 MDL-73354 mod_assign: Fixed broken timed assignment feature. 2022-02-09 10:52:35 +08:00
Adrian Greeve
c565ec4535 MDL-73354 mod_assign: Removed unused test code. 2022-02-09 10:52:35 +08:00
Adrian Greeve
1b0fec7f03 MDL-73354 mod_assign: Overrides page updates to tertiary navigation. 2022-02-09 10:52:34 +08:00
Adrian Greeve
33e6a36daf MDL-73354 mod_assign: General tidy up of tertiary navigation. 2022-02-09 10:52:34 +08:00
Eloy Lafuente (stronk7)
3bb4a4009c MDL-73764 tool_xmldb: Regenerate all the files detected by the report
Note that, instead of going one by one to them from the XMLDB Editor
(load, makes some tiny change, save, revert the change, save), the
report includes a commented line that, once uncommented, does regenerate
the file while reporting.

I've left it there as a commodity for the developer.
2022-02-08 19:25:03 +01:00
Andrew Nicols
95c6d3c8d9 Merge branch 'MDL-73716' of https://github.com/stronk7/moodle 2022-02-08 10:59:34 +08:00
Víctor Déniz
1a42a95e8d Merge branch 'MDL-73279' of https://github.com/call-learning/moodle 2022-02-07 18:13:20 +00:00
Eloy Lafuente (stronk7)
43280530b6 MDL-73716 phpunit: remove old simpletest static members
And replace them by phpunit @covers annotations including
all the classes declared or extended in the removed members.

It's not awesome coverage, but better than nothing.
2022-02-07 10:42:17 +01:00
Andrew Nicols
8c08634b69 Merge branch 'MDL-73659' of https://github.com/stronk7/moodle 2022-02-07 13:34:01 +08:00
Andrew Nicols
bb20aefc8d Merge branch 'MDL-71712-master' of https://github.com/aanabit/moodle 2022-02-07 09:53:09 +08:00
Eloy Lafuente (stronk7)
7a0d024e60 MDL-73659 phpunit: restore_date, api, rule, plugin, manager & helper
All restore_date_test, api_test, rule_test, plugin_test,
manager_test, helper_test testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- 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:

- All restore_date_test cases have been put under xxx\backup
  level 2 (valid API) namespace.
2022-02-05 00:03:32 +01:00
Laurent David
e1d255c95b MDL-73368 mod_bigbluebuttonbn: update activity icon
* Add the new icon (svg and png)
* Remove unused icon and font (the glyph was used once in the removed style)
2022-02-04 10:44:19 +01:00
Eloy Lafuente (stronk7)
ecbdf3fbad Merge branch 'MDL-71696-fix-oracle' of https://github.com/sarjona/moodle 2022-02-03 22:38:28 +01:00
Víctor Déniz
29f699cef7 Merge branch 'MDL-73605' of https://github.com/paulholden/moodle 2022-02-03 21:29:09 +00:00
Sara Arjona
dc8b6a84a1 MDL-71696 question: Fix Oracle failures with ambiguous colum 2022-02-03 19:28:27 +01:00
Paul Holden
002077952a MDL-73605 mod_forum: add label/help to the subscription mode options. 2022-02-03 13:25:34 +00:00
Sara Arjona
b841a811be Merge branch 'master_MDL-71696-versioning-integration' of https://github.com/catalyst/moodle-MDL-70329 2022-02-03 13:25:27 +01:00
Safat Shahin
bf55e5a481 MDL-71696 core_question: class autoload changes
This commit implements some class autoloading
fixes to align with core question structure.
2022-02-03 22:22:50 +11:00
Safat Shahin
3008edd366 MDL-71696 core_question: Implement question status change
This commit implements the status change pop up for a question
in the base view. This feature update will allow the change of
status of a question without creating a new version.
This commit also implements the status as a char rather than
an int value.
2022-02-03 22:22:50 +11:00
Marc-Alexandre Ghaly
b1ad75aef5 MDL-71696 qbank_preview: previewquestion plugin update
This commit implements versioning and associated features
in the previewquestion plugin. There have been some major
changes in the random question and version selection for
questions. This commit made those changes as well as added
some more features in the preview for version selection
and adds more behat coverage.
2022-02-03 22:22:50 +11:00
Safat Shahin
111951d861 MDL-71696 mod_quiz: quiz updates and behat coverage
The versioning changes will require some major changes
in the backup and restore of question bank and its
elements. This change introduces those changes to make
it compatible with the new world of versioning in question
bank. This commit also removes quiz_slots fields and
quiz_slot_tags table.
This commit will also introduce the versioning db
structure and some major changes to the quiz
and quiz attempts for the question, random
question and the view.
This commit implements the behat changes for versioning
in core question and associated locations.
2022-02-03 22:22:44 +11:00
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
Jun Pataleta
ee7b119943 Merge branch 'MDL-73363-master' of https://github.com/peterRd/moodle 2022-02-02 19:14:39 +08:00
Eloy Lafuente (stronk7)
5aa93e3066 Merge branch 'MDL-72466-master' of https://github.com/bmbrands/moodle 2022-02-02 12:10:18 +01:00