Commit graph

28528 commits

Author SHA1 Message Date
Jun Pataleta
88f1fa9b0f Merge branch 'MDL-71518-311' of git://github.com/rezaies/moodle into MOODLE_311_STABLE 2021-05-05 13:26:19 +08:00
Shamim Rezaie
daff66b1df MDL-71518 core: Add weekday to activity dates 2021-05-05 13:59:02 +10:00
Peter Dias
bbc896bc34 MDL-71460 hub: Use checkboxes instead of dropdowns
Change the yes/no dropdowns to a checkbox. Defaults to unchecked.
2021-05-05 10:09:10 +08:00
Víctor Déniz
116621f973 Merge branch 'MDL-70864-311-zip_packer_windows' of git://github.com/mudrd8mz/moodle into MOODLE_311_STABLE 2021-05-05 00:03:17 +01:00
Mike Churchward
a83c25e80a MDL-69863 tool_brickfield: Moving plugins to core files. 2021-05-04 19:36:33 +02:00
Shamim Rezaie
f4139818d1 MDL-69028 repository: Put a rate limit on draft file uploads 2021-05-04 17:22:21 +02:00
Jun Pataleta
f350b8e0bd Merge branch 'MDL-71401-311-3' of git://github.com/mickhawkins/moodle into MOODLE_311_STABLE 2021-05-04 12:26:41 +08:00
Michael Hawkins
2fdf71ffc7 MDL-71401 core_completion: Fix completion status caching
When an automatic completion condition may have had its state change,
we now unset the cached value for the user's completion in the relevant
activity, so up-to-date values are re-fetched and available to students.
The previous behaviour was that custom conditions would remain cached
until the activity reached overall completion.
2021-05-04 12:22:36 +08:00
Eloy Lafuente (stronk7)
6486979fe6 Merge branch 'MDL-71463-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-05-03 19:00:28 +02:00
David Mudrák
d95c3a00a0 MDL-70864 files: Fix zip_packer extracting files with trailing dots
File and folder names cannot end with dots on Windows. So replace the
trailing dots with underscore consistently with how some other zip tools
(such as 7-zip) handle this case.
2021-05-03 18:06:40 +02:00
Sara Arjona
afb9462896 Merge branch 'MDL-71163-311' of git://github.com/rezaies/moodle into MOODLE_311_STABLE 2021-05-03 12:00:06 +02:00
Víctor Déniz
997d9c4468 Merge branch 'MDL-71189-311-3' of git://github.com/mickhawkins/moodle into MOODLE_311_STABLE 2021-05-03 08:17:45 +01:00
Michael Hawkins
30426fbe5e MDL-71189 core_completion: Implementing custom completion sort ordering
This adds the requirement for activities supporting custom completion to
specify the order all completion conditions should be displayed for that
activity. It also implements the sorting that takes place.
2021-05-03 13:42:23 +08:00
Jake Dallimore
8732156670 Merge branch 'MDL-52724-311' of git://github.com/merrill-oakland/moodle into MOODLE_311_STABLE 2021-05-03 13:25:20 +08:00
Eloy Lafuente (stronk7)
372a6c5742 Merge branch 'MDL-66431-311' of git://github.com/ilyatregubov/moodle into MOODLE_311_STABLE 2021-05-02 19:13:56 +02:00
Víctor Déniz
43cd8af9e0 Merge branch 'MDL-70753-311' of https://github.com/sharidas/moodle into MOODLE_311_STABLE 2021-05-02 19:13:44 +02:00
Ilya Tregubov
be5eff78ab MDL-66431 core: Fix behat tests.
Move activity creation to data generators. Only fixing those
tests failing due to removing usemodchooser preference.
2021-05-01 16:18:56 +02:00
Ilya Tregubov
21ecadc082 MDL-66431 core: Remove activity chooser user preference.
This commit removes activity chooser user preference and
course preference page. Separate dropdowns to activity and
resource is also removed.
2021-05-01 16:18:56 +02:00
Shamim Rezaie
1abf669d99 MDL-71163 mod_assign: remove duplicate available from and due date info 2021-04-30 17:15:53 +10:00
Jun Pataleta
f852b7d938 Merge branch 'MDL-71486-311' of git://github.com/HuongNV13/moodle into MOODLE_311_STABLE 2021-04-30 11:08:44 +08:00
Sujith Haridasan
9d60d0dd82 MDL-70753 report: Provide a separate page for course report
Provide page for the reports in the course administration.
The page has a drop down to navigate to different reports.
The navigation is remembered just like the grade reports in
the course.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-04-30 08:37:13 +05:30
Jun Pataleta
67d1960126 Merge branch 'MDL-70947-311' of git://github.com/HuongNV13/moodle into MOODLE_311_STABLE 2021-04-30 10:34:17 +08:00
Sara Arjona
ca3f88fd1f Merge branch 'MDL-60331-311_take3' of git://github.com/lucaboesch/moodle into MOODLE_311_STABLE 2021-04-29 17:49:48 +02:00
Paul Holden
e810f798ee MDL-71463 dml: escape square brackets for SQL Server LIKE operator. 2021-04-29 13:49:35 +01:00
Huong Nguyen
89fe45e38c MDL-70947 File upload: Upload protection
Interacts badly with double-submit protection, and not all uploads protected
2021-04-29 15:32:00 +07:00
Huong Nguyen
feb8548a45 MDL-71486 course: Notice when in site home/course page 2021-04-29 14:43:06 +07:00
Adrian Greeve
cd96ef301c Merge branch 'MDL-71235-311' of https://github.com/dcai/moodle into MOODLE_311_STABLE 2021-04-29 14:41:55 +08:00
Andrew Nicols
3bc386e69e Merge branch 'MDL-70965-311' of git://github.com/marinaglancy/moodle into MOODLE_311_STABLE 2021-04-29 13:51:02 +08:00
Dongsheng Cai
4104a24196 MDL-71235 webservices: add activity completion data to web services 2021-04-29 13:52:52 +10:00
Andrew Nicols
14add58a7f Merge branch 'MDL-56609_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2021-04-29 09:41:40 +08:00
Adrian Greeve
702ea8590e Merge branch 'MDL-71051-311-2' of git://github.com/marinaglancy/moodle into MOODLE_311_STABLE 2021-04-29 09:22:37 +08:00
Luca Bösch
003d17d98b MDL-60331 questions: prevent double escaping question categories. 2021-04-28 17:16:31 +02:00
Marina Glancy
86d19b3474 MDL-70965 core_dml: php8 related changes:
1. pg_connection_status(false) fails on PHP8 because the argument is not a stream
2. skipeed the unittest that expected that pg_query() does not show an error if the resource is invalid
see also MDL-71482
2021-04-28 12:42:41 +02:00
Srdjan
99e536fc4c MDL-70965 core_dml: read_slave - mock db handles as resources
So they comply with the type hints.
2021-04-28 12:42:41 +02:00
Sara Arjona
2e877cd448 Merge branch 'MDL-70763-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-04-28 12:36:30 +02:00
Ruslan Kabalin
66e8f7a3d4 MDL-71051 core_user: fix issues and address review issues 2021-04-28 11:49:28 +02:00
Marina Glancy
10bf851874 MDL-71051 core_user: use user profile generator in all tests 2021-04-28 11:49:27 +02:00
Marina Glancy
3c9e54eafa MDL-71051 core_user: always use API when working with profile fields 2021-04-28 11:49:27 +02:00
Andrew Nicols
66131d9307 Merge branch 'MDL-70909-311' of git://github.com/ferranrecio/moodle into MOODLE_311_STABLE 2021-04-28 10:25:44 +08:00
Andrew Nicols
6645cb3396 Merge branch 'MDL-71386-311' of git://github.com/NoelDeMartin/moodle into MOODLE_311_STABLE 2021-04-28 10:15:42 +08:00
Andrew Nicols
1d7bbdfc08 Merge branch 'MDL-71389-311' of git://github.com/marinaglancy/moodle into MOODLE_311_STABLE 2021-04-28 09:49:48 +08:00
Eloy Lafuente (stronk7)
f6062a0bf8 MDL-56609 phpunit: Fix bogus expectation on DST changes day
Current test works ok every day of the year but the day of
DST begin changes (last Sunday of March currently).

That day, 01:00 Europe/London simply doesn't exist, because
the time is moved forward by 60 minutes.

Hence the expectation for the next cron execution is not 1 "normal"
day (24h) but 1 less hour.

Note this only happens for the current test on DST begins, the
opposite change (DST ends), happening the last Sunday of October
is not affected, because, at all effects, 01:00 is a perfectly normal
and existing hour.
2021-04-27 18:30:56 +02:00
Jun Pataleta
00dfc98251 Merge branch 'MDL-71410-311' of git://github.com/rezaies/moodle into MOODLE_311_STABLE 2021-04-27 12:36:29 +08:00
Shamim Rezaie
b315affbd4 MDL-71410 core: Prevent recursively calling getters 2021-04-27 14:34:09 +10:00
Shamim Rezaie
8408cb1050 MDL-71410 core: Introduce override_customdata()
The get_custom_data() method now calls obtain_dynamic_data() because
$this->customdata can be dynamic now.
2021-04-27 14:32:54 +10:00
Víctor Déniz
5ffa79f8d8 Merge branch 'MDL-71441-311' of git://github.com/bmbrands/moodle into MOODLE_311_STABLE 2021-04-27 00:04:56 +01:00
Bas Brands
b1db156ec0 MDL-71441 core_user: add profilefield social to standard plugins list 2021-04-26 14:43:55 +02:00
Sara Arjona
7b62b266fe Merge branch 'MDL-71370-311-test' of git://github.com/junpataleta/moodle into MOODLE_311_STABLE 2021-04-26 09:50:47 +02:00
Jun Pataleta
469e492196 MDL-71370 course: Make showcompletionconditions nullable
* When completion tracking is not enabled for the course, it does not
make sense for the course's showcompletionconditions setting to
be set according to the default value indicated by the
"moodlecourse | showcompletionconditions" admin setting. Setting
showcompletionconditions as enabled when completion tracking is disabled
makes even less sense. So in such a case, we should not be setting a
default value for showcompletionconditions and allow it to be null.

* When the course is edited and completion tracking is enabled, this
also would set the "Show completion conditions" field to default to the
value set in the "moodlecourse | showcompletionconditions" admin
setting.
2021-04-24 19:15:19 +08:00
Sara Arjona
6f890af454 Merge branch 'MDL-71144-311' of git://github.com/rezaies/moodle into MOODLE_311_STABLE 2021-04-23 13:16:10 +02:00