90195 Commits

Author SHA1 Message Date
AMOS bot
4dc9cf5b84 Automatically generated installer lang files 2018-09-08 00:07:23 +00:00
Jun Pataleta
6e2e63457e weekly release 3.6dev 2018-09-07 11:10:02 +08:00
Jun Pataleta
0fb5aa730c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-09-07 11:09:47 +08:00
David Mudrák
5e2236a2f0 MDL-60820 workshop: Fix default value of submissiontypefile 2018-09-05 11:29:53 +02:00
Jake Dallimore
c96c9601af MDL-62947 mod_feedback: fix feedback so it correctly uses forms API
Feedback code was doing the following, which is incompatible with the
sec-patched quickforms lib:
- appending '[0]' to non-group element names, meaning type checks in
getCleanType() were falling back to PARAM_RAW instead of PARAM_INT,
and meaning _findValue() was comparing elements it thought to be arrays
with scalar submit values (worked with eval() implementation as the 0th
element of a string was the character, but not working when patched).
- external unit tests incorrectly testing multichoice questions in the
process_page tests - patched lib highlighted failures.

It was also doing the following:
- actively setting null as default element values instead of 0 for
radio buttons and dropdowns (for 'not selected'). This is incompatible
with more recent quickforms lib (see MDL-63070).
- creating groups using addElement instead of addGroup - not recommended

This patch addresses the above.
2018-09-05 12:12:20 +08:00
Jake Dallimore
c87010baca MDL-62947 core_form: fix remote code execution exploit in QuickForms
Applies the patch found upstream:
https://github.com/pear/HTML_QuickForm/commit/
d3a6d5c44dedf3c164c6c79198e4ef479bcedcd2 and make util methods static
for php7 compatibility.
2018-09-05 12:12:19 +08:00
AMOS bot
fba3372009 Automatically generated installer lang files 2018-09-05 00:07:20 +00:00
Damyon Wiese
7c05d8a3d2 MDL-62748 course: maxsections is a limit
For course formats shipped with core, maxsections should be a limit to the number of sections
allowed in the course.
2018-09-04 22:44:45 +02:00
Mihail Geshoski
f468f6d02a MDL-62857 theme_boost: Better filtering on navbar / breadcrumbs 2018-09-04 22:44:45 +02:00
Tim Hunt
cb8aefa658 MDL-62880 qtype_ddwtos: drop support for legacy import format
It was more than 8 years since we wrote in that format.
2018-09-04 22:44:45 +02:00
Eloy Lafuente (stronk7)
f6cafe495e Merge branch 'MDL-63249-master-enfix' of git://github.com/mudrd8mz/moodle 2018-09-04 22:34:51 +02:00
Jun Pataleta
d58fd3dcbb Merge branch 'MDL-60578-master' of git://github.com/jleyva/moodle 2018-09-04 21:18:02 +08:00
David Monllao
acfdb84f3c Merge branch 'MDL-62342-master' of git://github.com/mihailges/moodle 2018-09-04 14:33:50 +02:00
Juan Leyva
f39d43af41 MDL-60578 mod_feedback: Handle correctly site feedbacks 2018-09-04 14:18:41 +02:00
Marina Glancy
38fefb5cdf MDL-60578 mod_feedback: pass courseid to WS 2018-09-04 14:18:39 +02:00
David Monllao
3db611ec31 MDL-62347 output: Fix phpdoc param name 2018-09-04 14:08:53 +02:00
David Monllao
72621d23ae Merge branch 'MDL-62347-master' of git://github.com/bmbrands/moodle 2018-09-04 14:05:41 +02:00
David Monllao
6a98671916 Merge branch 'MDL-60820-master-workshopsubmissiontypes' of git://github.com/mudrd8mz/moodle 2018-09-04 13:07:00 +02:00
David Monllao
ffc4cc9a25 Merge branch 'MDL-62944' of https://github.com/NeillM/moodle 2018-09-04 12:15:36 +02:00
David Monllao
adb8eb9c9c Merge branch 'MDL-55993-master' of https://github.com/albertolarah/moodle 2018-09-04 10:51:28 +02:00
Helen Foster
24a29d720c MDL-63249 lang: Merge English strings from the en_fix language pack
Significant string changes:

* completionpass_help, gradetopassnotset in mod_quiz - grade to pass set
  in quiz settings not gradebook
* namecolumnmissing,core_cohort - fixing incorrect message about adding
  users to a cohort
2018-09-04 08:40:48 +02:00
Jun Pataleta
8a03a5cba1 Merge branch 'MDL-60901' of git://github.com/stronk7/moodle 2018-09-04 10:17:23 +08:00
Eloy Lafuente (stronk7)
6b4a2b0ea1 Merge branch 'MDL-48846-master' of git://github.com/sarjona/moodle 2018-09-03 23:39:07 +02:00
Eloy Lafuente (stronk7)
4941d2d97d Merge branch 'MDL-63255-master' of git://github.com/vmdef/moodle 2018-09-03 23:31:00 +02:00
Eloy Lafuente (stronk7)
cf2fea1d25 Merge branch 'MDL-61742-master-inactiveproviders' of git://github.com/mudrd8mz/moodle 2018-09-03 23:23:12 +02:00
Eloy Lafuente (stronk7)
ced7e0efff Merge branch 'MDL-62848-master-placeholderwidth' of git://github.com/mudrd8mz/moodle 2018-09-03 22:52:31 +02:00
David Monllao
dfc6f782e1 Merge branch 'MDL-38301-master' of git://github.com/junpataleta/moodle 2018-09-03 12:44:50 +02:00
David Monllao
c4aa41ca2f Merge branch 'MDL-55744-master_atto_should_not_autosave_on_not_loggedin_users' of https://github.com/dravek/moodle 2018-09-03 12:27:25 +02:00
Alberto Lara Hernández
c60f5ae136 Merge branch 'MDL-55993-master' of https://github.com/albertolarah/moodle into MDL-55993-master 2018-09-03 12:18:58 +02:00
Alberto Lara Hernández
96a037f755 MDL-55993 mod_assign: web services don´t set a URL. 2018-09-03 12:18:41 +02:00
David Monllao
f3b4a63f91 Merge branch 'MDL-63238-master' of git://github.com/bmbrands/moodle 2018-09-03 10:36:16 +02:00
Eloy Lafuente (stronk7)
9b92642cf1 MDL-60901 environment: 3.6 requirements
Changes include:
- MySQL 5.6 is required.
- PostgreSQL 8.4 is required.
- Oracle 11.2 is required.
- 64bits architecture is recommended.
2018-09-03 10:15:26 +02:00
Víctor Déniz Falcón
b93767f3ee MDL-63255 core_user: fix harcoded sql table aliases 2018-09-03 06:53:40 +01:00
Mihail Geshoski
2e72392bbf MDL-62342 privacy: Fix strings used in the consent on behalf modal 2018-09-03 12:53:19 +08:00
Mihail Geshoski
c106d489c5 MDL-62342 privacy: Use singular/plural form in labels 2018-09-03 12:53:19 +08:00
Mihail Geshoski
c69a43f2fc MDL-56998 blog: Remove associated blog posts when module is deleted 2018-09-03 08:33:38 +08:00
AMOS bot
029b3a923d Automatically generated installer lang files 2018-09-02 00:07:18 +00:00
AMOS bot
607958a1b3 Automatically generated installer lang files 2018-09-01 00:07:18 +00:00
David Mudrák
c261ada88b MDL-62848 form: Fix width of the autocomplete input field
Make sure that the autcomplete input field is wide enough to display the
placeholder text.
2018-08-31 14:51:05 +02:00
David Mudrák
5cdf8d49c7 MDL-62848 form: Fix missing support for {{#js}} helper in autocomplete
The form-autocomplete module uses three Mustache templates
core/form_autocomplete_input, core/form_autocomplete_suggestions and
core/form_autocomplete_selection. However, it did not support executing
the JS that is eventually part of those templates.
2018-08-31 14:51:05 +02:00
Mark Johnson
7d2ad716dd MDL-60820 workshop: Allow teacher to specify submission types
This allows the teacher to define what students are supposed to submit
(online text and/or attachment) and if the given submission part is
required or optional.
2018-08-31 14:48:29 +02:00
Dan Poltawski
292df9f613 MDL-48846 filter: Stop reffering to invalid moodle.org/download/mimetex 2018-08-31 12:37:14 +02:00
David Mudrák
39d2c68856 MDL-61742 messaging: Do not send messages from inactive providers
Before this patch, we only checked that the given provider has been
configured in the user or system preferences. However, if the provider's
component is disabled, it does not even appear in these preferences.
Additionally, there was no check that the message / notification
provider is among providers allowed to be consumed by the recipient.

The patch checks that the message origin is among providers returned by
the message_get_providers_for_user() so disabled plugins can't act as
sources of messages and users can't receive messages from providers they
do not have capability for. This mitigates the risk of abusing a plugin
as a source of spam, for example.

Unit test is fixed and extended. When the $CFG->messaging is disabled,
no messages between users should be sent (I can't understand why the
unit test was written in an opposite way). Added assertions for the
raised debugging message.
2018-08-31 12:15:30 +02:00
Neill Magill
656837d65f MDL-62944 calendar: Clarify the intended use of $checkcapability 2018-08-31 10:15:37 +01:00
Simey Lameze
baedf0662a MDL-62944 calendar: Fix actionevent logic on template
During the calendar work, we have added the feature of
drag and drop activity event or "action events".

The problem at that time was, action events could not be
editable through the calendar UI, but should be allowed
to drag and drop. So, we couldn't use the return of
calendar_edit_event_allowed() because it can return true
(in case of teachers, that have permission to change the
activity) and the attribute isactionevent was created to
control on the UI if the user is viewing an action event.

So what my patch does is just add the check if we are
viewing an action event, and in this case, it won't display
the cog to edit that event.
2018-08-31 10:15:37 +01:00
Neill Magill
bbf1fde412 MDL-62944 activities: Activities should not require capability
Activities should not require the user manipulating them to have
calendar capabilities for their events to be added to the Moodle
calendar
2018-08-31 10:15:37 +01:00
Neill Magill
196aa50489 MDL-62944 activities: Test adding activities with no calendar capability 2018-08-31 10:15:36 +01:00
Neill Magill
2363b99e69 MDL-62944 completion: Calendar capabilities should not be required
The completion API should not require a user to have the capability to
add calendar events for it to function correctly.
2018-08-31 10:15:36 +01:00
Neill Magill
3f560e80ed MDL-62944 completion: Test that completion dates add events to calendar
When a user does not have calendar capabilities completion dates should
still be created correctly.
2018-08-31 10:15:35 +01:00
Neill Magill
0b673d9714 MDL-62944 mod_data: Action menu missing from database pages
The action menu was missing from many of the database activity pages,
which meant that it could not be accessed until enough had been done to
the activity to make the editing tabs that used view.php accessible.
2018-08-31 10:15:32 +01:00