moodle.git
4 years agoMDL-71235 webservices: add activity completion data to web services
Dongsheng Cai [Tue, 20 Apr 2021 10:41:53 +0000 (20:41 +1000)]
MDL-71235 webservices: add activity completion data to web services

4 years agoweekly release 4.0dev
Sara Arjona [Tue, 27 Apr 2021 13:14:50 +0000 (15:14 +0200)]
weekly release 4.0dev

4 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Sara Arjona [Tue, 27 Apr 2021 13:14:48 +0000 (15:14 +0200)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

4 years agoMerge branch 'MDL-71410-master' of git://github.com/rezaies/moodle
Jun Pataleta [Tue, 27 Apr 2021 04:36:24 +0000 (12:36 +0800)]
Merge branch 'MDL-71410-master' of git://github.com/rezaies/moodle

4 years agoMDL-71410 core: Prevent recursively calling getters
Shamim Rezaie [Sun, 18 Apr 2021 21:19:10 +0000 (07:19 +1000)]
MDL-71410 core: Prevent recursively calling getters

4 years agoMDL-71410 mod_quiz: implement activity_dates for the quiz module
Shamim Rezaie [Sun, 7 Mar 2021 15:52:04 +0000 (02:52 +1100)]
MDL-71410 mod_quiz: implement activity_dates for the quiz module

4 years agoMDL-71410 mod_quiz: Cache quiz times in modinfo for performance
Shamim Rezaie [Wed, 14 Apr 2021 22:08:36 +0000 (08:08 +1000)]
MDL-71410 mod_quiz: Cache quiz times in modinfo for performance

We update the dates with user/group overrides. The calculation of
the override in the quiz module is different from the assignment
module as the quiz_overrides table des not have a sortorder column.
See quiz_update_effective_access().

4 years agoMDL-71410 mod_quiz: Cache user and group overrides
Shamim Rezaie [Sun, 25 Apr 2021 16:44:25 +0000 (02:44 +1000)]
MDL-71410 mod_quiz: Cache user and group overrides

4 years agoMDL-71410 mod_lesson: implement activity_dates for the lesson module
Shamim Rezaie [Fri, 5 Mar 2021 12:37:23 +0000 (23:37 +1100)]
MDL-71410 mod_lesson: implement activity_dates for the lesson module

4 years agoMDL-71410 mod_lesson: Cache lesson times in modinfo for performance
Shamim Rezaie [Fri, 5 Mar 2021 11:29:12 +0000 (22:29 +1100)]
MDL-71410 mod_lesson: Cache lesson times in modinfo for performance

We update the dates with user/group overrides. The calculation of
the override in the lesson module is different from the assignment
module as the lesson_overrides table des not have a sortorder column.
See lesson::update_effective_access().

4 years agoMDL-71410 mod_lesson: Cache user and group overrides
Shamim Rezaie [Sat, 24 Apr 2021 18:19:24 +0000 (04:19 +1000)]
MDL-71410 mod_lesson: Cache user and group overrides

4 years agoMDL-71410 mod_assign: implement activity_dates for the assignment module
Shamim Rezaie [Thu, 25 Feb 2021 07:56:58 +0000 (18:56 +1100)]
MDL-71410 mod_assign: implement activity_dates for the assignment module

4 years agoMDL-71410 mod_assign: Cache assign times in modinfo for performance
Shamim Rezaie [Wed, 14 Apr 2021 19:55:09 +0000 (05:55 +1000)]
MDL-71410 mod_assign: Cache assign times in modinfo for performance

We update the dates with user/group overrides

4 years agoMDL-71410 mod_assign: Cache user and group overrides
Shamim Rezaie [Fri, 23 Apr 2021 11:07:39 +0000 (21:07 +1000)]
MDL-71410 mod_assign: Cache user and group overrides

4 years agoMerge branch 'MDL-71252-master' of git://github.com/HuongNV13/moodle
Jun Pataleta [Tue, 27 Apr 2021 02:41:03 +0000 (10:41 +0800)]
Merge branch 'MDL-71252-master' of git://github.com/HuongNV13/moodle

4 years agoMDL-71252 completion: PHPUnit failure
Huong Nguyen [Tue, 27 Apr 2021 01:42:37 +0000 (08:42 +0700)]
MDL-71252 completion: PHPUnit failure

4 years agoMerge branch 'MDL-71329' of https://github.com/Chocolate-lightning/moodle
Adrian Greeve [Tue, 27 Apr 2021 01:36:56 +0000 (09:36 +0800)]
Merge branch 'MDL-71329' of https://github.com/Chocolate-lightning/moodle

4 years agoMerge branch 'MDL-65687' of git://github.com/paulholden/moodle
Víctor Déniz [Mon, 26 Apr 2021 23:51:43 +0000 (00:51 +0100)]
Merge branch 'MDL-65687' of git://github.com/paulholden/moodle

4 years agoMerge branch 'MDL-71003' of git://github.com/paulholden/moodle
Víctor Déniz [Mon, 26 Apr 2021 23:38:11 +0000 (00:38 +0100)]
Merge branch 'MDL-71003' of git://github.com/paulholden/moodle

4 years agoMerge branch 'MDL-71441-master' of git://github.com/bmbrands/moodle
Víctor Déniz [Mon, 26 Apr 2021 22:50:22 +0000 (23:50 +0100)]
Merge branch 'MDL-71441-master' of git://github.com/bmbrands/moodle

4 years agoMerge branch 'MDL-70917' of git://github.com/paulholden/moodle
Sara Arjona [Mon, 26 Apr 2021 13:17:59 +0000 (15:17 +0200)]
Merge branch 'MDL-70917' of git://github.com/paulholden/moodle

4 years agoMDL-71441 core_user: add profilefield social to standard plugins list
Bas Brands [Mon, 26 Apr 2021 09:59:55 +0000 (11:59 +0200)]
MDL-71441 core_user: add profilefield social to standard plugins list

4 years agoMDL-71252 completion: Fix Behat test for manual completion display
Jun Pataleta [Mon, 26 Apr 2021 11:51:11 +0000 (19:51 +0800)]
MDL-71252 completion: Fix Behat test for manual completion display

Adjusting the test since the manual completion button is now being
hidden from the course homepage when completion is disabled.

4 years agoMerge branch 'MDL-71416' of git://github.com/paulholden/moodle
Sara Arjona [Mon, 26 Apr 2021 10:35:34 +0000 (12:35 +0200)]
Merge branch 'MDL-71416' of git://github.com/paulholden/moodle

4 years agoMerge branch 'MDL-71392' of git://github.com/paulholden/moodle
Sara Arjona [Mon, 26 Apr 2021 09:52:46 +0000 (11:52 +0200)]
Merge branch 'MDL-71392' of git://github.com/paulholden/moodle

4 years agoMerge branch 'MDL-71252-master' of git://github.com/HuongNV13/moodle
Jun Pataleta [Mon, 26 Apr 2021 09:02:46 +0000 (17:02 +0800)]
Merge branch 'MDL-71252-master' of git://github.com/HuongNV13/moodle

4 years agoMDL-71252 completion: Behat failure
Huong Nguyen [Mon, 26 Apr 2021 08:48:17 +0000 (15:48 +0700)]
MDL-71252 completion: Behat failure

4 years agoMerge branch 'MDL-70446-master' of https://github.com/sammarshallou/moodle
Eloy Lafuente (stronk7) [Mon, 26 Apr 2021 08:44:59 +0000 (10:44 +0200)]
Merge branch 'MDL-70446-master' of https://github.com/sammarshallou/moodle

4 years agoMerge branch 'MDL-71252-master' of git://github.com/HuongNV13/moodle
Jun Pataleta [Mon, 26 Apr 2021 07:55:11 +0000 (15:55 +0800)]
Merge branch 'MDL-71252-master' of git://github.com/HuongNV13/moodle

4 years agoMerge branch 'MDL-71370-master-test' of git://github.com/junpataleta/moodle
Sara Arjona [Mon, 26 Apr 2021 07:50:40 +0000 (09:50 +0200)]
Merge branch 'MDL-71370-master-test' of git://github.com/junpataleta/moodle

4 years agoMDL-71252 completion: Avoid showing the 'Mark as done' button
Huong Nguyen [Wed, 21 Apr 2021 07:32:40 +0000 (14:32 +0700)]
MDL-71252 completion: Avoid showing the 'Mark as done' button

The following activites will be applied:
 - Label
 - File (Force download/Open/In pop-up)
 - URL (Open/In pop-up)

4 years agoMDL-71410 core: Introduce override_customdata()
Shamim Rezaie [Wed, 14 Apr 2021 19:27:00 +0000 (05:27 +1000)]
MDL-71410 core: Introduce override_customdata()

The get_custom_data() method now calls obtain_dynamic_data() because
$this->customdata can be dynamic now.

4 years agoMDL-71370 course: Make showcompletionconditions nullable
Jun Pataleta [Thu, 22 Apr 2021 14:41:03 +0000 (22:41 +0800)]
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.

4 years agoAutomatically generated installer lang files
AMOS bot [Sat, 24 Apr 2021 00:07:56 +0000 (00:07 +0000)]
Automatically generated installer lang files

4 years agoMDL-71416 report_log: user context header should show users name.
Paul Holden [Fri, 23 Apr 2021 11:47:55 +0000 (12:47 +0100)]
MDL-71416 report_log: user context header should show users name.

Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
4 years agoMerge branch 'MDL-71144-master' of git://github.com/rezaies/moodle
Sara Arjona [Fri, 23 Apr 2021 11:16:01 +0000 (13:16 +0200)]
Merge branch 'MDL-71144-master' of git://github.com/rezaies/moodle

4 years agoweekly release 4.0dev
Sara Arjona [Fri, 23 Apr 2021 08:46:53 +0000 (10:46 +0200)]
weekly release 4.0dev

4 years agoNOBUG: Fixed SVG browser compatibility
Sara Arjona [Fri, 23 Apr 2021 08:46:51 +0000 (10:46 +0200)]
NOBUG: Fixed SVG browser compatibility

4 years agoMDL-71329 tool_moodlenet: Check to see if we get errors before curl
Mathew May [Tue, 20 Apr 2021 07:47:41 +0000 (15:47 +0800)]
MDL-71329 tool_moodlenet: Check to see if we get errors before curl

4 years agoMerge branch 'MDL-71171_master' of git://github.com/mdjnelson/moodle
Jun Pataleta [Fri, 23 Apr 2021 04:41:15 +0000 (12:41 +0800)]
Merge branch 'MDL-71171_master' of git://github.com/mdjnelson/moodle

4 years agoMDL-71171 customfield_text: ensure we set defaults properly
Mark Nelson [Mon, 22 Mar 2021 14:55:20 +0000 (22:55 +0800)]
MDL-71171 customfield_text: ensure we set defaults properly

4 years agoMerge branch 'MDL-70818-master-4' of git://github.com/rezaies/moodle
abgreeve [Fri, 23 Apr 2021 04:19:51 +0000 (12:19 +0800)]
Merge branch 'MDL-70818-master-4' of git://github.com/rezaies/moodle

4 years agoMerge branch 'MDL-70903-master' of git://github.com/roland04/moodle
Andrew Nicols [Fri, 23 Apr 2021 03:56:47 +0000 (11:56 +0800)]
Merge branch 'MDL-70903-master' of git://github.com/roland04/moodle

4 years agoMerge branch 'master-MDL-71376' of https://github.com/rjnl/moodle
Andrew Nicols [Fri, 23 Apr 2021 03:52:21 +0000 (11:52 +0800)]
Merge branch 'master-MDL-71376' of https://github.com/rjnl/moodle

4 years agoMDL-70818 mod_workshop: implement activity_dates for the workshop module
Shamim Rezaie [Mon, 8 Mar 2021 04:32:31 +0000 (15:32 +1100)]
MDL-70818 mod_workshop: implement activity_dates for the workshop module

4 years agoMDL-70818 mod_workshop: cache workshop times in modinfo for performance
Shamim Rezaie [Mon, 8 Mar 2021 04:15:24 +0000 (15:15 +1100)]
MDL-70818 mod_workshop: cache workshop times in modinfo for performance

4 years agoMDL-70818 mod_scorm: implement activity_dates for the scorm module
Shamim Rezaie [Sun, 7 Mar 2021 16:33:13 +0000 (03:33 +1100)]
MDL-70818 mod_scorm: implement activity_dates for the scorm module

4 years agoMDL-70818 mod_forum: implement activity_dates for the forum module
Shamim Rezaie [Fri, 26 Feb 2021 10:36:36 +0000 (21:36 +1100)]
MDL-70818 mod_forum: implement activity_dates for the forum module

4 years agoMDL-70818 mod_forum: cache forum times in modinfo for performance
Shamim Rezaie [Fri, 26 Feb 2021 09:53:44 +0000 (20:53 +1100)]
MDL-70818 mod_forum: cache forum times in modinfo for performance

4 years agoMDL-70818 mod_feedback: implement activity_dates for the feedback module
Shamim Rezaie [Fri, 26 Feb 2021 05:06:58 +0000 (16:06 +1100)]
MDL-70818 mod_feedback: implement activity_dates for the feedback module

4 years agoMDL-70818 mod_data: implement activity_dates for the database module
Shamim Rezaie [Thu, 25 Feb 2021 15:51:46 +0000 (02:51 +1100)]
MDL-70818 mod_data: implement activity_dates for the database module

4 years agoMerge branch 'MDL-71394-master' of git://github.com/marinaglancy/moodle
Andrew Nicols [Fri, 23 Apr 2021 03:42:00 +0000 (11:42 +0800)]
Merge branch 'MDL-71394-master' of git://github.com/marinaglancy/moodle

4 years agoMerge branch 'MDL-70970' of git://github.com/paulholden/moodle
Andrew Nicols [Fri, 23 Apr 2021 03:26:53 +0000 (11:26 +0800)]
Merge branch 'MDL-70970' of git://github.com/paulholden/moodle

4 years agoMerge branch 'MDL-70902-master' of git://github.com/dravek/moodle
Andrew Nicols [Fri, 23 Apr 2021 03:12:15 +0000 (11:12 +0800)]
Merge branch 'MDL-70902-master' of git://github.com/dravek/moodle

4 years agoMerge branch 'MDL-57831' of git://github.com/paulholden/moodle
Sara Arjona [Thu, 22 Apr 2021 16:13:04 +0000 (18:13 +0200)]
Merge branch 'MDL-57831' of git://github.com/paulholden/moodle

4 years agoMDL-57831 tool_monitor: update Behat tests for message preferences.
Paul Holden [Thu, 22 Apr 2021 15:11:02 +0000 (16:11 +0100)]
MDL-57831 tool_monitor: update Behat tests for message preferences.

4 years agoMerge branch 'MDL-71136_master' of https://github.com/TomoTsuyuki/moodle
Sara Arjona [Thu, 22 Apr 2021 11:56:37 +0000 (13:56 +0200)]
Merge branch 'MDL-71136_master' of https://github.com/TomoTsuyuki/moodle

4 years agoMerge branch 'MDL-71400-master' of git://github.com/mihailges/moodle
Sara Arjona [Thu, 22 Apr 2021 11:16:23 +0000 (13:16 +0200)]
Merge branch 'MDL-71400-master' of git://github.com/mihailges/moodle

4 years agoMDL-71144 mod_scorm: Deprecate scorm_get_completion_state()
Shamim Rezaie [Tue, 30 Mar 2021 16:28:49 +0000 (03:28 +1100)]
MDL-71144 mod_scorm: Deprecate scorm_get_completion_state()

4 years agoMDL-71144 mod_quiz: custom_completion should not use deprecated function
Shamim Rezaie [Tue, 30 Mar 2021 16:02:50 +0000 (03:02 +1100)]
MDL-71144 mod_quiz: custom_completion should not use deprecated function

This commit also removes an unnecessary DB query.

4 years agoMDL-71144 mod_quiz: Deprecate quiz_get_completion_state()
Shamim Rezaie [Tue, 30 Mar 2021 14:06:11 +0000 (01:06 +1100)]
MDL-71144 mod_quiz: Deprecate quiz_get_completion_state()

4 years agoMerge branch 'MDL-71170_master' of git://github.com/mdjnelson/moodle
Jun Pataleta [Thu, 22 Apr 2021 10:55:28 +0000 (18:55 +0800)]
Merge branch 'MDL-71170_master' of git://github.com/mdjnelson/moodle

4 years agoMDL-71392 mod_quiz: don't display grade to pass if not set.
Paul Holden [Wed, 21 Apr 2021 21:17:48 +0000 (22:17 +0100)]
MDL-71392 mod_quiz: don't display grade to pass if not set.

4 years agoMDL-71400 assignfeedback_offline: Fix message after worksheet upload
Mihail Geshoski [Thu, 22 Apr 2021 04:21:04 +0000 (12:21 +0800)]
MDL-71400 assignfeedback_offline: Fix message after worksheet upload

4 years agoMerge branch 'MDL-71156-master' of git://github.com/lameze/moodle
Jun Pataleta [Thu, 22 Apr 2021 03:51:59 +0000 (11:51 +0800)]
Merge branch 'MDL-71156-master' of git://github.com/lameze/moodle

4 years agoMerge branch 'MDL-69460' of https://github.com/paulholden/moodle
Andrew Nicols [Thu, 22 Apr 2021 03:11:40 +0000 (11:11 +0800)]
Merge branch 'MDL-69460' of https://github.com/paulholden/moodle

4 years agoMerge branch 'MDL-71288-master' of git://github.com/lameze/moodle
Jun Pataleta [Thu, 22 Apr 2021 02:29:25 +0000 (10:29 +0800)]
Merge branch 'MDL-71288-master' of git://github.com/lameze/moodle

4 years agoMDL-71156 core: machinery to recover orphaned calendar events
Simey Lameze [Fri, 16 Apr 2021 03:42:33 +0000 (11:42 +0800)]
MDL-71156 core: machinery to recover orphaned calendar events

The machinery to fix orphaned calendar events that were broken by MDL-67494.

The solution consists of:

1) Upgrade step that checks if this site has executed the problematic upgrade steps and
   if positive, it will schedule a new run for calendar_fix_orphaned_events adhoc task.

2) Adhoc task that will self-spawn calling the recovery machinery, running until
   all the orphaned calendar events are fixed. It also sets the maximum runtime of
   60 seconds. It is also possible to override that number by specifing the desired
   number setting the ->calendareventsmaxseconds in your config.php

3) CLI script that will look for all the calendar events which userids
   where broken by a wrong upgrade step, affecting to Moodle 3.9.5
   and up.

   It performs checks to both:
     a) Detect if the site was affected (ran the wrong upgrade step).
     b) Look for orphaned calendar events, categorising them as:
       - standard: site / category / course / group / user events
       - subscription: events created via subscriptions.
       - action: normal action events, created to show common important dates.
       - override: user and group override events, particular, that some activities support.
       - custom: other events, not being any of the above, common or particular.

   By specifying it (--fix) try to recover as many broken events (missing userid) as
   possible. Standard, subscription, action, override events in core are fully supported but
   override or custom events should be fixed by each plugin as far as there isn't any standard
   API (plugin-wise) to launch a rebuild of the calendar events.

4) Unit tests and helper functions to generate calendar events. We have decided to
   keep the tests simple, testing only true and false and not using data generators because
   the code is purely to recover the calendar events and won't turn into an API or something
   and also due to the urgency of this issue.
   The helpers have been created in calendar/tests/helpers.php since there are no data generators
   for calendar.

4 years agoMerge branch 'MDL-70412-master' of git://github.com/aanabit/moodle
Andrew Nicols [Thu, 22 Apr 2021 02:10:38 +0000 (10:10 +0800)]
Merge branch 'MDL-70412-master' of git://github.com/aanabit/moodle

4 years agoMDL-71288 completion: add fallback for plugins
Simey Lameze [Mon, 19 Apr 2021 09:11:02 +0000 (17:11 +0800)]
MDL-71288 completion: add fallback for plugins

This commits adds a fallback for plugins which does not have
custom_completion implementation.

For those cases, it will search for {modulename}_get_completion_state
callback in the plugin and call get_overall_completion() method in
cm_completion_details class to get the overall completion state for
a course module and user.

4 years agoMerge branch 'MDL-28452-master' of git://github.com/bmbrands/moodle
abgreeve [Thu, 22 Apr 2021 01:38:50 +0000 (09:38 +0800)]
Merge branch 'MDL-28452-master' of git://github.com/bmbrands/moodle

4 years agoMDL-71144 mod_lesson: Deprecate lesson_get_completion_state()
Shamim Rezaie [Tue, 30 Mar 2021 13:41:55 +0000 (00:41 +1100)]
MDL-71144 mod_lesson: Deprecate lesson_get_completion_state()

4 years agoMDL-71144 mod_survey: Deprecate survey_get_completion_state()
Shamim Rezaie [Tue, 30 Mar 2021 13:33:22 +0000 (00:33 +1100)]
MDL-71144 mod_survey: Deprecate survey_get_completion_state()

4 years agoMDL-71144 mod_glossary: Deprecate glossary_get_completion_state()
Shamim Rezaie [Tue, 30 Mar 2021 13:02:46 +0000 (00:02 +1100)]
MDL-71144 mod_glossary: Deprecate glossary_get_completion_state()

4 years agoMDL-71144 mod_forum: Deprecate forum_get_completion_state()
Jun Pataleta [Tue, 30 Mar 2021 01:56:10 +0000 (09:56 +0800)]
MDL-71144 mod_forum: Deprecate forum_get_completion_state()

4 years agoMDL-71144 mod_feedback: Deprecate feedback_get_completion_state()
Jun Pataleta [Tue, 30 Mar 2021 01:55:48 +0000 (09:55 +0800)]
MDL-71144 mod_feedback: Deprecate feedback_get_completion_state()

4 years agoMDL-71144 mod_data: Deprecate data_get_completion_state()
Jun Pataleta [Tue, 30 Mar 2021 01:53:19 +0000 (09:53 +0800)]
MDL-71144 mod_data: Deprecate data_get_completion_state()

4 years agoMDL-71144 mod_choice: Deprecate choice_get_completion_state()
Jun Pataleta [Tue, 30 Mar 2021 01:52:59 +0000 (09:52 +0800)]
MDL-71144 mod_choice: Deprecate choice_get_completion_state()

4 years agoMDL-71144 mod_assign: Deprecate assign_get_completion_state()
Jun Pataleta [Tue, 30 Mar 2021 01:52:26 +0000 (09:52 +0800)]
MDL-71144 mod_assign: Deprecate assign_get_completion_state()

4 years agoMDL-71144 completion: Deprecate get_completion_state callbacks
Jun Pataleta [Tue, 30 Mar 2021 01:51:31 +0000 (09:51 +0800)]
MDL-71144 completion: Deprecate get_completion_state callbacks

* *_get_completion_state() callback functions have been deprecated and
should no  longer be used. Plugins that define custom completion rules
must implement the mod_[modname]\completion\custom_completion class that
extends the \core_completion\activity_custom_completion base class.

4 years agoMDL-57831 theme_boost: accessibility update for message preferences.
Paul Holden [Wed, 21 Apr 2021 20:46:29 +0000 (21:46 +0100)]
MDL-57831 theme_boost: accessibility update for message preferences.

The preferences table did not meet accessibility guidelines regarding
colour contrast between hovered rows and the disabled switch
elements.

Ensure white background is used for all table cells, and replace the
highlighted columns used to differentiate processors with borders.

4 years agoMerge branch 'MDL-64336' of https://github.com/NeillM/moodle
Sara Arjona [Wed, 21 Apr 2021 15:13:57 +0000 (17:13 +0200)]
Merge branch 'MDL-64336' of https://github.com/NeillM/moodle

4 years agoMDL-71394 core_blog: fix incorrect default setting in form
Marina Glancy [Wed, 21 Apr 2021 14:20:21 +0000 (16:20 +0200)]
MDL-71394 core_blog: fix incorrect default setting in form

the keys of the options are strings, in PHP8 strings are compared with 0 differently

4 years agoMDL-64336 assign: Add missing PHP doc
Neill Magill [Thu, 4 Apr 2019 10:33:31 +0000 (11:33 +0100)]
MDL-64336 assign: Add missing PHP doc

4 years agoMDL-64336 assign: Teachers should be able to see all submissions
Neill Magill [Thu, 4 Apr 2019 10:31:49 +0000 (11:31 +0100)]
MDL-64336 assign: Teachers should be able to see all submissions

Before this change a teacher would be able to see users listed if:

* They have an active enrolment and can submit
* They have an an inactive enrolment for a role that can submit

After this change they will additonally be able to see users listed:

* That have an active enrolment and have submitted
* That have an inactive enrolment and have submitted

This means that if an assignment has it's context frozen all users
that have made some form of submission will still be listed.

It will also apply if the submission capability is removed from a
user.

If a user's enrolment is deleted they will not be listed.

The submission and grading counts have also been updated so
they will reflect the new rules.

4 years agoMDL-64336 assign: Submissions should be visible while frozen
Neill Magill [Mon, 10 Dec 2018 09:27:36 +0000 (09:27 +0000)]
MDL-64336 assign: Submissions should be visible while frozen

Before this change if a student visited an assignment that is
frozen they would only see the title and description even if
they had made a submission to it.

After the change they will be able to see the status of their
submission and any feedback and grades they have recived.

It will also make the Moodle app recognise that submission
should not happen because the assignment is frozen.

Tests based on ones created by Andrew Nicols

4 years agoMDL-28452 core_user: add custom profilefield capability
Bas Brands [Mon, 15 Mar 2021 12:29:56 +0000 (13:29 +0100)]
MDL-28452 core_user: add custom profilefield capability

Add a setting to show custom profilefields to self or others
with capability moodle/sit:viewuseridentity in the course context only

4 years agoMDL-28452 core_user: add behat test for duplicate shortname warning
Bas Brands [Tue, 23 Mar 2021 10:51:46 +0000 (11:51 +0100)]
MDL-28452 core_user: add behat test for duplicate shortname warning

4 years agoMDL-28452 core_user: migrate social profile fields f9e1c2587a520ed486a169a3584b9e556bfa1e58
Bas Brands [Tue, 17 Nov 2020 18:43:49 +0000 (19:43 +0100)]
MDL-28452 core_user: migrate social profile fields

Create a new profile field type, move all existing content of the fields
'icq', 'skype', 'aim', 'yahoo', 'msn' and 'url' in the mdl_user table to
theses new profile fields if needed.

AMOS BEGIN
MOV [aimid,core],[aimid,courseimage,profilefield_social]
MOV [yahooid,core],[yahooid,profilefield_social]
MOV [skypeid,core],[skypeid,profilefield_social]
MOV [icqnumber,core],[icqnumber,profilefield_social]
MOV [msnid,core],[msnid,profilefield_social]
MOV [webpage,core],[webpage,profilefield_social]
AMOS END

4 years agoMerge branch 'dynreg-upgrade-squash' of https://github.com/cengage/moodle
Sara Arjona [Wed, 21 Apr 2021 07:58:29 +0000 (09:58 +0200)]
Merge branch 'dynreg-upgrade-squash' of https://github.com/cengage/moodle

4 years agoMerge branch 'MDL-71017-master-2' of git://github.com/marinaglancy/moodle
Jun Pataleta [Wed, 21 Apr 2021 06:58:06 +0000 (14:58 +0800)]
Merge branch 'MDL-71017-master-2' of git://github.com/marinaglancy/moodle

4 years agoMerge branch 'MDL-71205' of https://github.com/mkassaei/moodle
abgreeve [Wed, 21 Apr 2021 05:32:14 +0000 (13:32 +0800)]
Merge branch 'MDL-71205' of https://github.com/mkassaei/moodle

4 years agoMerge branch 'MDL-71030-master' of https://github.com/NashTechOpenUniversity/moodle
Jake Dallimore [Wed, 21 Apr 2021 04:06:50 +0000 (12:06 +0800)]
Merge branch 'MDL-71030-master' of https://github.com/NashTechOpenUniversity/moodle

4 years agoMerge branch 'MDL-71174' of git://github.com/danmarsden/moodle
abgreeve [Wed, 21 Apr 2021 03:01:05 +0000 (11:01 +0800)]
Merge branch 'MDL-71174' of git://github.com/danmarsden/moodle

4 years agoMerge branch 'MDL-63381_master_v3' of https://github.com/TomoTsuyuki/moodle
Eloy Lafuente (stronk7) [Tue, 20 Apr 2021 21:06:42 +0000 (23:06 +0200)]
Merge branch 'MDL-63381_master_v3' of https://github.com/TomoTsuyuki/moodle

4 years agoMDL-70500 lti: dyn reg can be used to update tools
Claude Vervoort [Fri, 30 Oct 2020 19:51:42 +0000 (15:51 -0400)]
MDL-70500 lti: dyn reg can be used to update tools

4 years agoMerge branch 'MDL-62244_master_label_view' of https://github.com/sheesania/moodle
Sara Arjona [Tue, 20 Apr 2021 15:44:54 +0000 (17:44 +0200)]
Merge branch 'MDL-62244_master_label_view' of https://github.com/sheesania/moodle

4 years agoweekly release 4.0dev
Sara Arjona [Tue, 20 Apr 2021 13:51:10 +0000 (15:51 +0200)]
weekly release 4.0dev

4 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Sara Arjona [Tue, 20 Apr 2021 13:51:07 +0000 (15:51 +0200)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

4 years agoMDL-70970 quizaccess_seb: consistent property array sorting by key.
Paul Holden [Tue, 20 Apr 2021 11:06:03 +0000 (12:06 +0100)]
MDL-70970 quizaccess_seb: consistent property array sorting by key.

In PHP8.0 using `ksort` was producing incorrect results by sorting
keys differing only in case in the wrong order. This change makes
sorting consistent between PHP versions.

Co-Authored-By: Tim Hunt <T.J.Hunt@open.ac.uk>