6209 Commits

Author SHA1 Message Date
Tim Hunt
3b23ff6fec MDL-76810 redirect handling: ensure return URLs are properly sanitised 2023-01-11 11:42:28 +08:00
Paul Holden
bb95badd99 Merge branch 'MDL-76578-master' of https://github.com/aanabit/moodle 2023-01-06 10:41:35 +00:00
Ilya Tregubov
f99f305be6 Merge branch 'MDL-75878-master' of https://github.com/sammarshallou/moodle 2023-01-06 11:07:51 +07:00
Sara Arjona
908f3a4c78 Merge branch 'MDL-74987-master' of https://github.com/ferranrecio/moodle 2023-01-04 16:57:31 +01:00
Sara Arjona
be95fb2581 Merge branch 'MDL-75596-master' of https://github.com/sh-csg/moodle 2023-01-04 16:15:37 +01:00
Sara Arjona
b92b0b6cea Merge branch 'MDL-76221' of https://github.com/paulholden/moodle 2023-01-04 13:08:44 +01:00
Paul Holden
45818da292 MDL-76221 reportbuilder: improve report test generator methods.
Test generators for creating report columns, filters and conditions
now allow for setting all persistent properties.
2023-01-04 10:56:27 +00:00
Ferran Recio
302a5e43a6 MDL-74987 core_courseformat: alt to duplicate modules
If a user drags an activity and press the ALT key, the activity will be
duplicated in the new place instead of simply moved. This behaviour
is quite normal in many softwares and it is a non intrusive usability
improvement.
2023-01-04 09:25:52 +01:00
Ferran Recio
35a12cfffb MDL-74987 core_courseformat: migrate duplicate to state action 2023-01-04 09:25:52 +01:00
Ferran Recio
a3264eb5e0 MDL-74987 core_courseformat: add pending to refresh activity
The activity reload was missing a pending control. This can lead to
behat errors if the module refresh takes longer than expected for some
reason.
2023-01-04 09:25:52 +01:00
Stefan Hanauska
15034e7100 MDL-75596 course: Allow inserting activities everywhere
Co-authored-by: Mathew May <mathewm@hotmail.co.nz>
2023-01-03 21:49:06 +01:00
Sara Arjona
139a629763 Merge branch 'MDL-75177' of https://github.com/paulholden/moodle 2023-01-03 17:50:34 +01:00
sam marshall
fbd61d1268 MDL-75878 Course: Adding graded activity too slow when lots of grades
Adding an activity with a grade item previously triggered a course
regrade, which can be extremely slow. This change makes it so that on
courses where regrading is slow, when you add an activity that
requires regrading, it takes you to an intermediate screen with a
progress bar.

This change also fixes a bug in the existing grade overview report,
which shows grades across multiple courses, but previously only
checked, and if necessary regraded, one course.
2023-01-03 16:04:58 +00:00
Paul Holden
cade48a337 Merge branch 'MDL-74989-master' of https://github.com/ferranrecio/moodle 2023-01-03 12:33:45 +00:00
Ferran Recio
fe4784e60f MDL-74989 core_courseformat: migrate cm delete to reactive
Migrate the course index delete activities to the new reactive actions
with batch deletion.
2023-01-03 13:07:31 +01:00
Ferran Recio
d789209f3e MDL-74989 core_courseformat: fix courseindex components init methods
The courseindex init methods contains static references to the class
name instead of a dynamic "this" reference. This makes harder for format
plugins to extend those classes as they need to override the init method
for no specific reason.
2023-01-03 11:10:33 +01:00
Paul Holden
42926069da Merge branch 'MDL-76188-master' of https://github.com/ferranrecio/moodle 2023-01-03 09:34:28 +00:00
Ferran Recio
63a7c58ee3 MDL-76188 core_courseformat: migrate highlight to reactive component
The highlight and unhighlight sections applies only to the format_topics
plugins. With this commit all the related code is migrated to reactive
component and format_topics extend the current course editor to add all
the logic
2023-01-02 11:39:52 +01:00
Amaia Anabitarte
f8ec9e6893 MDL-76578 core_course: One section per page summary information 2022-12-26 16:04:09 +01:00
David Matamoros
facc3322e4 MDL-76301 course: Add course overview files to courses datasource 2022-12-16 13:56:15 +01:00
Paul Holden
f550239e78 MDL-75177 reportbuilder: preload context data for column callback.
Improve performance/reduce query count by requesting all necessary
data as part of initial column SQL. See also dc60fe66.
2022-12-14 09:52:55 +00:00
Sara Arjona
b5e2829f66 Merge branch 'MDL-75594-master' of https://github.com/sh-csg/moodle 2022-12-12 17:58:30 +01:00
Stefan Hanauska
6378a41995 MDL-75594 course: Add beforemod parameter 2022-12-12 14:39:53 +01:00
Ilya Tregubov
e641428826 Merge branch 'MDL-76490' of https://github.com/paulholden/moodle 2022-12-06 13:09:21 +03:00
Andrew Nicols
3365e5a4e6 Merge branch 'MDL-76145-master' of https://github.com/meirzamoodle/moodle 2022-12-06 13:35:46 +08:00
Paul Holden
23930c2516 MDL-76490 behat: use defined step for interaction with autocomplete. 2022-12-05 14:02:33 +00:00
Jun Pataleta
e07adad35f Merge branch 'MDL-76225-master' of https://github.com/ferranrecio/moodle 2022-12-05 13:47:44 +08:00
Ilya Tregubov
05535e38df Merge branch 'MDL-76497-master' of https://github.com/junpataleta/moodle 2022-12-01 08:56:09 +03:00
Ferran Recio
8cb0c44e17 MDL-76225 core_courseformat: fix section title id 2022-11-30 16:44:48 +01:00
Meirza
ed5db9e301 MDL-76145 course: Avoid long course names that exceed available space
Co-authored-by: Stephen Sharpe <stephen.sharpe@synergy-learning.com>
2022-11-30 09:45:47 +07:00
Marina Glancy
a800e7e62f MDL-74853 various: add second parameter to htmlentities functions
Default value of the $flag argument changed in PHP 8.1 from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE
To ensure consistent behavior across different PHP version the second parameter is now required for the functions:
htmlspecialchars(), htmlentities(), htmlspecialchars_decode(), html_entity_decode() and get_html_translation_table()
2022-11-28 16:12:20 +01:00
Jun Pataleta
c6ab792ddf MDL-76497 upgrade: add the 4.1.0 separation line to all upgrade scripts 2022-11-28 14:43:04 +08:00
Jun Pataleta
00bae8b8a4 MDL-76403 versions: bump all versions and requires near release 2022-11-23 09:45:23 +08:00
Paul Holden
7c79ff41b0 Merge branch 'MDL-75569-master' of https://github.com/justusdieckmann/moodle 2022-11-17 14:35:01 +00:00
Sara Arjona
78a1791e24 Merge branch 'MDL-75567-master' of https://github.com/justusdieckmann/moodle 2022-11-17 13:06:28 +01:00
Víctor Déniz
dd1c227c8d Merge branch 'MDL-73804-make-category-filter-context' of https://github.com/Peterburnett/moodle 2022-11-17 11:54:26 +00:00
Jun Pataleta
57aa434dd0 Merge branch 'MDL-76328' of https://github.com/paulholden/moodle 2022-11-17 15:32:10 +08:00
Paul Holden
bf96c78a43 MDL-76328 course: ensure activity chooser search takes full height. 2022-11-16 11:33:55 +00:00
David Woloszyn
dfa476e5a5 MDL-76271 dndupload: Corrected layout when uploading to course via dnd 2022-11-16 11:16:45 +11:00
Peter Burnett
ebd8e07cbc
MDL-73804 category: Use system context for category name filtering 2022-11-15 14:49:30 +10:00
Marina Glancy
064eccd4fc MDL-75525 reportbuilder: specify initial sorting for datasources 2022-11-07 15:43:45 +01:00
Eloy Lafuente (stronk7)
d590b08dfa MDL-75880 phpunit: fix all @coversDefaultClass missing @covers
Because @coversDefaultClass doesn't indicate any coverage (it's
just an alias to avoid having to write the class name in @covers),
this commit fixes all the files that were using that annotation
and missing any @covers.

Basically, replacing one by the other and done.
2022-11-04 16:51:20 +01:00
Sara Arjona
7d53813db7 Merge branch 'MDL-75349' of https://github.com/paulholden/moodle 2022-11-04 12:06:36 +03:00
Sara Arjona
e9596c1fca Merge branch 'MDL-75759-master' of https://github.com/junpataleta/moodle 2022-11-04 11:01:41 +08:00
Jun Pataleta
a343faaa7d MDL-75759 courseformat: Link classes in PHPDocs with @see tags
- Linking classes/methods mentioned in PHPDoc with @see tags help devs
checking the PHPDoc to quickly navigate to the class/method mentioned
and also helps us ensure that it points to the correct class/method.
- Some typo/grammar fixes as well in existing PHPDoc descriptions.
- Fixed parameter type in execute()'s PHPDoc block.
2022-11-03 11:57:25 +08:00
Simey Lameze
e43fef8fc9 MDL-75759 courseformat: fix documentation of stateupdates tests 2022-11-03 11:37:10 +08:00
Jun Pataleta
dbf67c06bb MDL-75759 courseformat: Fix stateactions test
* Require lib/externallib.php in
\core_courseformat\output\local\state\cm::export_for_template()
* Point @coversDefaultClass to the proper class.
2022-11-03 11:35:42 +08:00
Jun Pataleta
5e84f00acb Merge branch 'MDL-73141-master' of https://github.com/dravek/moodle 2022-11-01 09:25:34 +08:00
Sara Arjona
aaca32f7e1 Merge branch 'MDL-75771-master' of https://github.com/PhMemmel/moodle 2022-10-31 13:39:43 +01:00
Jun Pataleta
9bdfcc46d3 Merge branch 'MDL-75358-master' of https://github.com/marinaglancy/moodle 2022-10-31 10:10:16 +08:00